[Form] Tweak to FileTypeTest to avoid warning

This commit is contained in:
Ryan Weaver 2011-04-23 19:47:14 -05:00
parent 78b2062c5e
commit 66cc555bb1

View File

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