[FrameworkBundle] Fix test scanning the full tmp directory
This commit is contained in:
parent
9b39c7a091
commit
bb9413b71b
@ -67,7 +67,7 @@ bar';
|
|||||||
*/
|
*/
|
||||||
private function createFile($content)
|
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);
|
file_put_contents($filename, $content);
|
||||||
|
|
||||||
$this->files[] = $filename;
|
$this->files[] = $filename;
|
||||||
@ -90,6 +90,7 @@ bar';
|
|||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->files = array();
|
$this->files = array();
|
||||||
|
@mkdir(sys_get_temp_dir().'/framework-yml-lint-test');
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function tearDown()
|
protected function tearDown()
|
||||||
@ -99,5 +100,7 @@ bar';
|
|||||||
unlink($file);
|
unlink($file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rmdir(sys_get_temp_dir().'/framework-yml-lint-test');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user