File tree 2 files changed +4
-2
lines changed
Symfony/Tests/Component/HttpFoundation/File
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,10 @@ public function testMove()
96
96
public function testRename ()
97
97
{
98
98
$ path = __DIR__ .'/Fixtures/test.copy.gif ' ;
99
- $ targetPath = __DIR__ .'/Fixtures/ test.target.gif ' ;
99
+ $ targetPath = realpath ( __DIR__ .'/Fixtures ' ) . DIRECTORY_SEPARATOR . ' test.target.gif ' ;
100
100
@unlink ($ path );
101
101
@unlink ($ targetPath );
102
- copy (__DIR__ .'/Fixtures/test.gif ' , $ path );
102
+ copy (realpath ( __DIR__ .'/Fixtures/test.gif ' ) , $ path );
103
103
104
104
$ file = new File ($ path );
105
105
$ file ->rename ('test.target.gif ' );
Original file line number Diff line number Diff line change 9
9
* file that was distributed with this source code.
10
10
*/
11
11
12
+ date_default_timezone_set ('Europe/Paris ' );
13
+
12
14
if (file_exists ($ file = __DIR__ .'/../autoload.php ' )) {
13
15
require_once $ file ;
14
16
} elseif (file_exists ($ file = __DIR__ .'/../autoload.php.dist ' )) {
You can’t perform that action at this time.
0 commit comments