From bb9413b71b58ff2f776bd1fd3108342afff99d27 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Mon, 29 Aug 2016 20:58:41 +0200 Subject: [PATCH] [FrameworkBundle] Fix test scanning the full tmp directory --- src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php b/src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php index cbcf8cd278..708eec538f 100644 --- a/src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php +++ b/src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php @@ -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'); } }