瀏覽代碼

[Form] fixed unit tests

Fabien Potencier 14 年之前
父節點
當前提交
81deedfc1b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/Symfony/Tests/Component/Form/Extension/Core/Type/FileTypeTest.php

+ 2 - 1
tests/Symfony/Tests/Component/Form/Extension/Core/Type/FileTypeTest.php

@@ -24,7 +24,8 @@ class FileTypeTest extends TypeTestCase
 
 
     public static function setUpBeforeClass()
     public static function setUpBeforeClass()
     {
     {
-        self::$tmpDir = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'symfony-test';
+        self::$tmpDir = sys_get_temp_dir().DIRECTORY_SEPARATOR.'symfony-test';
+        mkdir(self::$tmpDir, 0777, true);
     }
     }
 
 
     protected function setUp()
     protected function setUp()