File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public function testUnusedBinding()
68
68
public function testMissingParent ()
69
69
{
70
70
$ this ->expectException ('Symfony\Component\DependencyInjection\Exception\InvalidArgumentException ' );
71
- $ this ->expectExceptionMessageRegExp ('Unused binding "$quz" in service [\s\S]+ Invalid service ".* \\ ParentNotExists": class NotExists not found\. ' );
71
+ $ this ->expectExceptionMessageRegExp ('/ Unused binding "\ $quz" in service [\s\S]+/ ' );
72
72
if (\PHP_VERSION_ID >= 70400 ) {
73
73
throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
74
74
}
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ public function testTagWithEmptyNameThrowsException()
311
311
public function testTagWithNonStringNameThrowsException ()
312
312
{
313
313
$ this ->expectException ('Symfony\Component\DependencyInjection\Exception\InvalidArgumentException ' );
314
- $ this ->expectExceptionMessageRegExp ('The tag name for service "\ .+" must be a non-empty string ' );
314
+ $ this ->expectExceptionMessageRegExp ('/ The tag name for service ".+" in .+ must be a non-empty string/ ' );
315
315
$ loader = new YamlFileLoader (new ContainerBuilder (), new FileLocator (self ::$ fixturesPath .'/yaml ' ));
316
316
$ loader ->load ('tag_name_no_string.yml ' );
317
317
}
You can’t perform that action at this time.
0 commit comments