[FrameworkBundle] Fix test scanning the full tmp directory

This commit is contained in:
Robin Chalas 2016-08-29 20:58:41 +02:00
parent 9b39c7a091
commit bb9413b71b
No known key found for this signature in database
GPG Key ID: 89672113756EE03B

View File

@ -67,7 +67,7 @@ bar';
*/
private function createFile($content)
{
$filename = tempnam(sys_get_temp_dir(), 'sf-');
$filename = tempnam(sys_get_temp_dir().'/framework-yml-lint-test', 'sf-');
file_put_contents($filename, $content);
$this->files[] = $filename;
@ -90,6 +90,7 @@ bar';
protected function setUp()
{
$this->files = array();
@mkdir(sys_get_temp_dir().'/framework-yml-lint-test');
}
protected function tearDown()
@ -99,5 +100,7 @@ bar';
unlink($file);
}
}
rmdir(sys_get_temp_dir().'/framework-yml-lint-test');
}
}