Skip to content

Commit a606d90

Browse files
committed
arguing with windows
1 parent a4649b7 commit a606d90

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/Symfony/Component/AssetPipeline/Tests/AssetPipelineRepositoryTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,18 @@ public function testAllWithNamespaces()
9797
'dir2_namespace/subdir/file6.js' => __DIR__.'/fixtures/dir2/subdir/file6.js',
9898
'dir2_namespace/test.gif.foo' => __DIR__.'/fixtures/dir2/test.gif.foo',
9999
];
100+
100101
$normalizedExpectedAllAssets = [];
101102
foreach ($expectedAllAssets as $key => $val) {
102103
$normalizedExpectedAllAssets[str_replace('/', DIRECTORY_SEPARATOR, $key)] = realpath($val);
103104
}
104105

105-
$this->assertEquals($normalizedExpectedAllAssets, array_map('realpath', $repository->all()));
106+
$actualAssets = $repository->all();
107+
$normalizedActualAssets = [];
108+
foreach ($actualAssets as $key => $val) {
109+
$normalizedActualAssets[str_replace('/', DIRECTORY_SEPARATOR, $key)] = realpath($val);
110+
}
111+
112+
$this->assertEquals($normalizedExpectedAllAssets, $normalizedActualAssets);
106113
}
107114
}

0 commit comments

Comments
 (0)