Преглед изворни кода

Fixed filesystem test failing on windows

Jordi Boggiano пре 14 година
родитељ
комит
025f3b1565
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

+ 1 - 1
tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

@@ -96,7 +96,7 @@ class FileTest extends \PHPUnit_Framework_TestCase
     public function testRename()
     {
         $path = __DIR__.'/Fixtures/test.copy.gif';
-        $targetPath = __DIR__.'/Fixtures/test.target.gif';
+        $targetPath = __DIR__.strtr('/Fixtures/test.target.gif', '/', DIRECTORY_SEPARATOR);
         @unlink($path);
         @unlink($targetPath);
         copy(__DIR__.'/Fixtures/test.gif', $path);