8000 [FrameworkBundle] Fix test scanning the full tmp directory · symfony/symfony@bb9413b · GitHub
[go: up one dir, main page]

Skip to content

Commit bb9413b

Browse files
committed
[FrameworkBundle] Fix test scanning the full tmp directory
1 parent 9b39c7a commit bb9413b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function testLintFileNotReadable()
6767
*/
6868
private function createFile($content)
6969
{
70-
$filename = tempnam(sys_get_temp_dir(), 'sf-');
70+
$filename = tempnam(sys_get_temp_dir().'/framework-yml-lint-test', 'sf-');
7171
file_put_contents($filename, $content);
7272

7373
$this->files[] = $filename;
@@ -90,6 +90,7 @@ protected function createCommandTester()
9090
protected function setUp()
9191
{
9292
$this->files = array();
93+
@mkdir(sys_get_temp_dir().'/framework-yml-lint-test');
9394
}
9495

9596
protected function tearDown()
@@ -99,5 +100,7 @@ protected function tearDown()
99100
unlink($file);
100101
}
101102
}
103+
104+
rmdir(sys_get_temp_dir().'/framework-yml-lint-test');
102105
}
103106
}

0 commit comments

Comments
 (0)
0