diff --git a/tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php b/tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php index c6b953d032eb0..224efa89d9284 100644 --- a/tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php +++ b/tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php @@ -96,10 +96,10 @@ public function testMove() public function testRename() { $path = __DIR__.'/Fixtures/test.copy.gif'; - $targetPath = __DIR__.'/Fixtures/test.target.gif'; + $targetPath = realpath(__DIR__.'/Fixtures') . DIRECTORY_SEPARATOR . 'test.target.gif'; @unlink($path); @unlink($targetPath); - copy(__DIR__.'/Fixtures/test.gif', $path); + copy(realpath(__DIR__.'/Fixtures/test.gif'), $path); $file = new File($path); $file->rename('test.target.gif'); diff --git a/tests/bootstrap.php b/tests/bootstrap.php index fb080edd1bea2..2302d13bdedb0 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +date_default_timezone_set('Europe/Paris'); + if (file_exists($file = __DIR__.'/../autoload.php')) { require_once $file; } elseif (file_exists($file = __DIR__.'/../autoload.php.dist')) {