Skip to content

Commit

Permalink
[HttpFoundation] Fixed tests for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored and fabpot committed Nov 18, 2010
1 parent b2bd7ce commit 7a255fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function setUp()

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

public function testGetNameReturnsNameWithExtension()
Expand All @@ -32,7 +32,7 @@ public function testGetExtensionReturnsExtensionWithDot()

public function testGetDirectoryReturnsDirectoryName()
{
$this->assertEquals(__DIR__.'/Fixtures', $this->file->getDirectory());
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures', $this->file->getDirectory());
}

public function testGetMimeTypeUsesMimeTypeGuessers()
Expand Down Expand Up @@ -62,7 +62,7 @@ public function testSizeReturnsFileSize()
public function testMove()
{
$path = __DIR__.'/Fixtures/test.copy.gif';
$targetPath = __DIR__.'/Fixtures/test.target.gif';
$targetPath = __DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'test.target.gif';
@unlink($path);
@unlink($targetPath);
copy(__DIR__.'/Fixtures/test.gif', $path);
Expand Down

0 comments on commit 7a255fe

Please sign in to comment.