File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/Symfony/Component/Config/Tests/Builder Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -159,10 +159,12 @@ public function testSetExtraKeyMethodIsNotGeneratedWhenAllowExtraKeysIsFalse()
159
159
*/
160
160
private function generateConfigBuilder (string $ configurationClass , ?string &$ outputDir = null )
161
161
{
162
- $ outputDir = tempnam (sys_get_temp_dir (), 'sf_config_builder_ ' );
163
- unlink ($ outputDir );
164
- mkdir ($ outputDir );
165
- $ this ->tempDir [] = $ outputDir ;
162
+ if (null === $ outputDir ) {
163
+ $ outputDir = tempnam (sys_get_temp_dir (), 'sf_config_builder_ ' );
164
+ unlink ($ outputDir );
165
+ mkdir ($ outputDir );
166
+ $ this ->tempDir [] = $ outputDir ;
167
+ }
166
168
167
169
$ configuration = new $ configurationClass ();
168
170
$ rootNode = $ configuration ->getConfigTreeBuilder ()->buildTree ();
You can’t perform that action at this time.
0 commit comments