Skip to content

Commit 123aac4

Browse files
minor symfony#58101 [DependencyInjection] Fix test paths on Windows (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [DependencyInjection] Fix test paths on Windows | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- e415c1b [DependencyInjection] Fix test paths on Windows
2 parents ad5d178 + e415c1b commit 123aac4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ public function testInvalidBinaryKeyType()
13181318
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath.'/xml'));
13191319

13201320
$this->expectException(InvalidArgumentException::class);
1321-
$this->expectExceptionMessage(\sprintf('Tag "<property>" with key-type="binary" does not have a valid base64 encoded key in "%s".', self::$fixturesPath.'/xml/key_type_incorrect_bin.xml'));
1321+
$this->expectExceptionMessage(\sprintf('Tag "<property>" with key-type="binary" does not have a valid base64 encoded key in "%s/xml%skey_type_incorrect_bin.xml".', self::$fixturesPath, \DIRECTORY_SEPARATOR));
13221322
$loader->load('key_type_incorrect_bin.xml');
13231323
}
13241324

@@ -1328,7 +1328,7 @@ public function testUnknownConstantAsKey()
13281328
$loader = new XmlFileLoader($container, new FileLocator(self::$fixturesPath.'/xml'));
13291329

13301330
$this->expectException(InvalidArgumentException::class);
1331-
$this->expectExceptionMessage(\sprintf('The key "PHP_Unknown_CONST" is not a valid constant in "%s".', self::$fixturesPath.'/xml/key_type_wrong_constant.xml'));
1331+
$this->expectExceptionMessage(\sprintf('The key "PHP_Unknown_CONST" is not a valid constant in "%s/xml%skey_type_wrong_constant.xml".', self::$fixturesPath, \DIRECTORY_SEPARATOR));
13321332
$loader->load('key_type_wrong_constant.xml');
13331333
}
13341334

0 commit comments

Comments
 (0)