Skip to content

Commit 7a255fe

Browse files
Seldaekfabpot
authored andcommitted
[HttpFoundation] Fixed tests for windows
1 parent b2bd7ce commit 7a255fe

File tree

1 file changed

+3
-3
lines changed
  • tests/Symfony/Tests/Component/HttpFoundation/File

1 file changed

+3
-3
lines changed

tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function setUp()
1717

1818
public function testGetPathReturnsAbsolutePath()
1919
{
20-
$this->assertEquals(__DIR__.'/Fixtures/test.gif', $this->file->getPath());
20+
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'test.gif', $this->file->getPath());
2121
}
2222

2323
public function testGetNameReturnsNameWithExtension()
@@ -32,7 +32,7 @@ public function testGetExtensionReturnsExtensionWithDot()
3232

3333
public function testGetDirectoryReturnsDirectoryName()
3434
{
35-
$this->assertEquals(__DIR__.'/Fixtures', $this->file->getDirectory());
35+
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures', $this->file->getDirectory());
3636
}
3737

3838
public function testGetMimeTypeUsesMimeTypeGuessers()
@@ -62,7 +62,7 @@ public function testSizeReturnsFileSize()
6262
public function testMove()
6363
{
6464
$path = __DIR__.'/Fixtures/test.copy.gif';
65-
$targetPath = __DIR__.'/Fixtures/test.target.gif';
65+
$targetPath = __DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'test.target.gif';
6666
@unlink($path);
6767
@unlink($targetPath);
6868
copy(__DIR__.'/Fixtures/test.gif', $path);

0 commit comments

Comments
 (0)