File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
src/Symfony/Component/Yaml/Tests/Command Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testLintFileNotReadable()
67
67
*/
68
68
private function createFile ($ content )
69
69
{
70
- $ filename = tempnam (sys_get_temp_dir (), 'sf- ' );
70
+ $ filename = tempnam (sys_get_temp_dir (). ' /framework-yml-lint-test ' , 'sf- ' );
71
71
file_put_contents ($ filename , $ content );
72
72
73
73
$ this ->files [] = $ filename ;
@@ -90,6 +90,7 @@ protected function createCommandTester()
90
90
protected function setUp ()
91
91
{
92
92
$ this ->files = array ();
93
+ @mkdir (sys_get_temp_dir ().'/framework-yml-lint-test ' );
93
94
}
94
95
95
96
protected function tearDown ()
@@ -99,5 +100,7 @@ protected function tearDown()
99
100
unlink ($ file );
100
101
}
101
102
}
103
+
104
+ rmdir (sys_get_temp_dir ().'/framework-yml-lint-test ' );
102
105
}
103
106
}
You can’t perform that action at this time.
0 commit comments