Skip to content

Commit cf5b68b

Browse files
committed
[AssetMapper] Normalizing path in test to fix / \ comparison in Windows
1 parent fb775f4 commit cf5b68b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/AssetMapper/Tests/CompiledAssetMapperConfigReaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testLoadConfig()
5454
public function testSaveConfig()
5555
{
5656
$reader = new CompiledAssetMapperConfigReader($this->writableRoot);
57-
$this->assertEquals($this->writableRoot.'/foo.json', $reader->saveConfig('foo.json', ['foo' => 'bar']));
57+
$this->assertEquals($this->writableRoot.\DIRECTORY_SEPARATOR.'foo.json', realpath($reader->saveConfig('foo.json', ['foo' => 'bar'])));
5858
$this->assertEquals(['foo' => 'bar'], json_decode(file_get_contents($this->writableRoot.'/foo.json'), true));
5959
}
6060

0 commit comments

Comments
 (0)