Skip to content

Commit 7f995ab

Browse files
Merge branch '5.0'
* 5.0: [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions [Messenger] Make sure redis transports are initialized correctly Remove return type for Twig function workflow_metadata() [DI] fix typo
2 parents 3ff0f4d + 2255760 commit 7f995ab

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Tests/Loader/XmlFileLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public function testLoadRouteWithControllerSetInDefaults()
443443
public function testOverrideControllerInDefaults()
444444
{
445445
$this->expectException('InvalidArgumentException');
446-
$this->expectExceptionMessageRegExp('/The routing file "[^"]*" must not specify both the "controller" attribute and the defaults key "_controller" for "app_blog"/');
446+
$this->expectExceptionMessageMatches('/The routing file "[^"]*" must not specify both the "controller" attribute and the defaults key "_controller" for "app_blog"/');
447447
$loader = new XmlFileLoader(new FileLocator([__DIR__.'/../Fixtures/controller']));
448448
$loader->load('override_defaults.xml');
449449
}
@@ -475,7 +475,7 @@ public function provideFilesImportingRoutesWithControllers()
475475
public function testImportWithOverriddenController()
476476
{
477477
$this->expectException('InvalidArgumentException');
478-
$this->expectExceptionMessageRegExp('/The routing file "[^"]*" must not specify both the "controller" attribute and the defaults key "_controller" for the "import" tag/');
478+
$this->expectExceptionMessageMatches('/The routing file "[^"]*" must not specify both the "controller" attribute and the defaults key "_controller" for the "import" tag/');
479479
$loader = new XmlFileLoader(new FileLocator([__DIR__.'/../Fixtures/controller']));
480480
$loader->load('import_override_defaults.xml');
481481
}

Tests/Loader/YamlFileLoaderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function testLoadRouteWithControllerSetInDefaults()
145145
public function testOverrideControllerInDefaults()
146146
{
147147
$this->expectException('InvalidArgumentException');
148-
$this->expectExceptionMessageRegExp('/The routing file "[^"]*" must not specify both the "controller" key and the defaults key "_controller" for "app_blog"/');
148+
$this->expectExceptionMessageMatches('/The routing file "[^"]*" must not specify both the "controller" key and the defaults key "_controller" for "app_blog"/');
149149
$loader = new YamlFileLoader(new FileLocator([__DIR__.'/../Fixtures/controller']));
150150
$loader->load('override_defaults.yml');
151151
}
@@ -177,7 +177,7 @@ public function provideFilesImportingRoutesWithControllers()
177177
public function testImportWithOverriddenController()
178178
{
179179
$this->expectException('InvalidArgumentException');
180-
$this->expectExceptionMessageRegExp('/The routing file "[^"]*" must not specify both the "controller" key and the defaults key "_controller" for "_static"/');
180+
$this->expectExceptionMessageMatches('/The routing file "[^"]*" must not specify both the "controller" key and the defaults key "_controller" for "_static"/');
181181
$loader = new YamlFileLoader(new FileLocator([__DIR__.'/../Fixtures/controller']));
182182
$loader->load('import_override_defaults.yml');
183183
}

0 commit comments

Comments
 (0)