Skip to content

Commit

Permalink
Merge pull request #2938 from elazar/chore/phpunit-9
Browse files Browse the repository at this point in the history
Modify usage of deprecated expectExceptionMessageRegExp() method
  • Loading branch information
l0gicgate authored Apr 13, 2020
2 parents 8245b0a + b34a9d4 commit d80402b
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->expectExceptionMessageRegExp('/(Middleware|Callable) 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->expectExceptionMessageRegExp('/(Middleware|Callable) Unresolvable::class does not exist/');
$this->expectExceptionMessageMatches('/(Middleware|Callable) Unresolvable::class does not exist/');

$unresolvable = 'Unresolvable::class';

Expand Down

0 comments on commit d80402b

Please sign in to comment.