Browse Source

[Form] fixed unit test paths

Fabien Potencier 14 years ago
parent
commit
30ccd0b794
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tests/Symfony/Tests/Component/Form/FileFieldTest.php

+ 2 - 2
tests/Symfony/Tests/Component/Form/FileFieldTest.php

@@ -40,7 +40,7 @@ class FileFieldTest extends \PHPUnit_Framework_TestCase
             'tmp_dir' => self::$tmpDir,
         ));
 
-        $tmpPath = self::$tmpDir . '/' . md5(session_id() . '$secret$' . '12345');
+        $tmpPath = realpath(self::$tmpDir) . '/' . md5(session_id() . '$secret$' . '12345');
         $that = $this;
 
         $file = $this->getMock('Symfony\Component\HttpFoundation\File\UploadedFile', array(), array(), '', false);
@@ -91,7 +91,7 @@ class FileFieldTest extends \PHPUnit_Framework_TestCase
             'token' => '12345',
             'original_name' => 'original_name.jpg',
         ), $field->getDisplayedData());
-        $this->assertEquals($tmpPath, $field->getData());
+        $this->assertEquals(realpath($tmpPath), realpath($field->getData()));
     }
 
     public function testBindKeepsOldFileIfNotOverwritten()