Skip to content

Commit 05200f5

Browse files
committed
Fix PHPUnit 8.5 deprecations.
1 parent 41e230a commit 05200f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Controller/ContainerControllerResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ public function testGetControllerOnNonUndefinedFunction($controller, $exceptionN
232232
// All this logic needs to be duplicated, since calling parent::testGetControllerOnNonUndefinedFunction will override the expected exception and not use the regex
233233
$resolver = $this->createControllerResolver();
234234
$this->expectException($exceptionName);
235-
$this->expectExceptionMessageRegExp($exceptionMessage);
235+
$this->expectExceptionMessageMatches($exceptionMessage);
236236

237237
$request = Request::create('/');
238238
$request->attributes->set('_controller', $controller);

0 commit comments

Comments
 (0)