Skip to content

Commit fa91b88

Browse files
committed
minor symfony#57985 [DependencyInjection] fix tests on Windows (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [DependencyInjection] fix tests on Windows | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- e3e0d72 fix tests on Windows
2 parents f652396 + e3e0d72 commit fa91b88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Tests/Loader/XmlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ public function testDeprecatedTagged()
12881288
$container = new ContainerBuilder();
12891289
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath.'/xml'));
12901290

1291-
$this->expectDeprecation(sprintf('Since symfony/dependency-injection 7.2: Type "tagged" is deprecated for tag <argument>, use "tagged_iterator" instead in "%s".', self::$fixturesPath.'/xml/services_with_deprecated_tagged.xml'));
1291+
$this->expectDeprecation(\sprintf('Since symfony/dependency-injection 7.2: Type "tagged" is deprecated for tag <argument>, use "tagged_iterator" instead in "%s/xml%sservices_with_deprecated_tagged.xml".', self::$fixturesPath, \DIRECTORY_SEPARATOR));
12921292

12931293
$loader->load('services_with_deprecated_tagged.xml');
12941294
}

src/Symfony/Component/DependencyInjection/Tests/Loader/YamlFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ public function testDeprecatedTagged()
12111211
$container = new ContainerBuilder();
12121212
$loader = new YamlFileLoader($container, new FileLocator(self::$fixturesPath.'/yaml'));
12131213

1214-
$this->expectDeprecation(sprintf('Since symfony/dependency-injection 7.2: Using "!tagged" is deprecated, use "!tagged_iterator" instead in "%s".', self::$fixturesPath.'/yaml/tagged_deprecated.yml'));
1214+
$this->expectDeprecation(\sprintf('Since symfony/dependency-injection 7.2: Using "!tagged" is deprecated, use "!tagged_iterator" instead in "%s/yaml%stagged_deprecated.yml".', self::$fixturesPath, \DIRECTORY_SEPARATOR));
12151215

12161216
$loader->load('tagged_deprecated.yml');
12171217
}

0 commit comments

Comments
 (0)