Przeglądaj źródła

Fixed filesystem test failing on windows

Jordi Boggiano 14 lat temu
rodzic
commit
025f3b1565

+ 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);