8000 [Config] Fixed tests on Windows · symfony/symfony@500cc3c · GitHub
[go: up one dir, main page]

Skip to content

Commit 500cc3c

Browse files
committed
[Config] Fixed tests on Windows
1 parent 04f51ff commit 500cc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Symfony/Tests/Component/Config/Resource/DirectoryResourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function removeDirectory($directory)
3838
{
3939
$iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($directory), \RecursiveIteratorIterator::CHILD_FIRST);
4040
foreach ($iterator as $pat 5C93 h) {
41-
if (preg_match('#/\.\.?$#', $path->__toString())) {
41+
if (preg_match('#[/\\\\]\.\.?$#', $path->__toString())) {
4242
continue;
4343
}
4444
if ($path->isDir()) {

0 commit comments

Comments
 (0)
0