File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public function testLintFilesFromBundleDirectory()
115
115
*/
116
116
private function createFile ($ content )
117
117
{
118
- $ filename = tempnam (sys_get_temp_dir (), 'sf- ' );
118
+ $ filename = tempnam (sys_get_temp_dir (). ' /yml-lint-test ' , 'sf- ' );
119
119
file_put_contents ($ filename , $ content );
120
120
121
121
$ this ->files [] = $ filename ;
@@ -152,7 +152,7 @@ private function getKernelAwareApplicationMock()
152
152
->expects ($ this ->once ())
153
153
->method ('locateResource ' )
154
154
->with ('@AppBundle/Resources ' )
155
- ->willReturn (sys_get_temp_dir ());
155
+ ->willReturn (sys_get_temp_dir (). ' /yml-lint-test ' );
156
156
157
157
$ application = $ this ->getMockBuilder (Application::class)
158
158
->disableOriginalConstructor ()
@@ -184,6 +184,7 @@ private function getKernelAwareApplicationMock()
184
184
185
185
protected function setUp ()
186
186
{
187
+ @mkdir (sys_get_temp_dir ().'/yml-lint-test ' );
187
188
$ this ->files = array ();
188
189
}
189
190
@@ -194,5 +195,6 @@ protected function tearDown()
194
195
unlink ($ file );
195
196
}
196
197
}
198
+ rmdir (sys_get_temp_dir ().'/yml-lint-test ' );
197
199
}
198
200
}
You can’t perform that action at this time.
0 commit comments