Skip to content

Commit

Permalink
Use correct assertion methods
Browse files Browse the repository at this point in the history
  • Loading branch information
elazar committed Apr 13, 2020
1 parent 1acba18 commit eeb0947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/MiddlewareDispatcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public function testResolveThrowsExceptionWhenResolvableDoesNotImplementMiddlewa
public function testResolveThrowsExceptionWithoutContainerAndUnresolvableClass()
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Unresolvable::class does not exist');
$this->expectExceptionMessageMatches('/(Middleware|Callable) Unresolvable::class does not exist/');

$handler = new MockRequestHandler();
$middlewareDispatcher = $this->createMiddlewareDispatcher($handler, null);
Expand All @@ -296,7 +296,7 @@ public function testResolveThrowsExceptionWithoutContainerAndUnresolvableClass()
public function testResolveThrowsExceptionWithoutContainerNonAdvancedCallableResolverAndUnresolvableClass()
{
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Unresolvable::class does not exist');
$this->expectExceptionMessageMatches('/(Middleware|Callable) Unresolvable::class does not exist/');

$unresolvable = 'Unresolvable::class';

Expand Down

0 comments on commit eeb0947

Please sign in to comment.