Skip to content

Commit a4649b7

Browse files
committed
making sure we use a fresh array
1 parent 3c3de44 commit a4649b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ 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+
$normalizedExpectedAllAssets = [];
100101
foreach ($expectedAllAssets as $key => $val) {
101-
$expectedAllAssets[str_replace('/', DIRECTORY_SEPARATOR, $key)] = realpath($val);
102+
$normalizedExpectedAllAssets[str_replace('/', DIRECTORY_SEPARATOR, $key)] = realpath($val);
102103
}
103104

104-
$this->assertEquals($expectedAllAssets, array_map('realpath', $repository->all()));
105+
$this->assertEquals($normalizedExpectedAllAssets, array_map('realpath', $repository->all()));
105106
}
106107
}

0 commit comments

Comments
 (0)