Browse Source

Fixed filesystem test failing on windows

Jordi Boggiano 14 years ago
parent
commit
025f3b1565
1 changed files with 1 additions and 1 deletions
  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);