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()
6868 public function testMissingParent ()
6969 {
7070 $ 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]+/ ' );
7272 if (\PHP_VERSION_ID >= 70400 ) {
7373 throw new Warning ('PHP 7.4 breaks this test, see https://bugs.php.net/78351. ' );
7474 }
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ public function testTagWithEmptyNameThrowsException()
311311 public function testTagWithNonStringNameThrowsException ()
312312 {
313313 $ 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/ ' );
315315 $ loader = new YamlFileLoader (new ContainerBuilder (), new FileLocator (self ::$ fixturesPath .'/yaml ' ));
316316 $ loader ->load ('tag_name_no_string.yml ' );
317317 }
You can’t perform that action at this time.
0 commit comments