소스 검색

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

Pascal Borreli 14 년 전
부모
커밋
df3947019e
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

+ 3 - 3
tests/Symfony/Tests/Component/HttpFoundation/File/FileTest.php

@@ -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()