File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/Symfony/Tests/Component/HttpFoundation/File Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ public function setUp()
17
17
18
18
public function testGetPathReturnsAbsolutePath ()
19
19
{
20
- $ this ->assertEquals (__DIR__ .' / Fixtures/ test.gif ' , $ this ->file ->getPath ());
20
+ $ this ->assertEquals (__DIR__ .DIRECTORY_SEPARATOR . ' Fixtures ' . DIRECTORY_SEPARATOR . ' test.gif ' , $ this ->file ->getPath ());
21
21
}
22
22
23
23
public function testGetNameReturnsNameWithExtension ()
@@ -32,7 +32,7 @@ public function testGetExtensionReturnsExtensionWithDot()
32
32
33
33
public function testGetDirectoryReturnsDirectoryName ()
34
34
{
35
- $ this ->assertEquals (__DIR__ .' / Fixtures ' , $ this ->file ->getDirectory ());
35
+ $ this ->assertEquals (__DIR__ .DIRECTORY_SEPARATOR . ' Fixtures ' , $ this ->file ->getDirectory ());
36
36
}
37
37
38
38
public function testGetMimeTypeUsesMimeTypeGuessers ()
@@ -62,7 +62,7 @@ public function testSizeReturnsFileSize()
62
62
public function testMove ()
63
63
{
64
64
$ path = __DIR__ .'/Fixtures/test.copy.gif ' ;
65
- $ targetPath = __DIR__ .' / Fixtures/ test.target.gif ' ;
65
+ $ targetPath = __DIR__ .DIRECTORY_SEPARATOR . ' Fixtures ' . DIRECTORY_SEPARATOR . ' test.target.gif ' ;
66
66
@unlink ($ path );
67
67
@unlink ($ targetPath );
68
68
copy (__DIR__ .'/Fixtures/test.gif ' , $ path );
You can’t perform that action at this time.
0 commit comments