[HttpFoundation][Windows] Fixed test after removal of realpath 03bb3580a6

This commit is contained in:
Pascal Borreli 2011-04-22 20:16:17 +00:00
parent 417839345f
commit df3947019e

View File

@ -25,12 +25,12 @@ class FileTest extends \PHPUnit_Framework_TestCase
public function testGetPathReturnsAbsolutePath()
{
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'test.gif', $this->file->getPath());
$this->assertEquals(__DIR__.'/Fixtures/test.gif', $this->file->getPath());
}
public function test__toString()
{
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures'.DIRECTORY_SEPARATOR.'test.gif', (string) $this->file);
$this->assertEquals(__DIR__.'/Fixtures/test.gif', (string) $this->file);
}
public function testGetWebPathReturnsPathRelativeToDocumentRoot()
@ -73,7 +73,7 @@ class FileTest extends \PHPUnit_Framework_TestCase
public function testGetDirectoryReturnsDirectoryName()
{
$this->assertEquals(__DIR__.DIRECTORY_SEPARATOR.'Fixtures', $this->file->getDirectory());
$this->assertEquals(__DIR__.'/Fixtures', $this->file->getDirectory());
}
public function testGetMimeTypeUsesMimeTypeGuessers()