We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12ee083 commit 729ea25Copy full SHA for 729ea25
Tests/Builder/GeneratedConfigTest.php
@@ -159,10 +159,12 @@ public function testSetExtraKeyMethodIsNotGeneratedWhenAllowExtraKeysIsFalse()
159
*/
160
private function generateConfigBuilder(string $configurationClass, ?string &$outputDir = null)
161
{
162
- $outputDir = tempnam(sys_get_temp_dir(), 'sf_config_builder_');
163
- unlink($outputDir);
164
- mkdir($outputDir);
165
- $this->tempDir[] = $outputDir;
+ if (null === $outputDir) {
+ $outputDir = tempnam(sys_get_temp_dir(), 'sf_config_builder_');
+ unlink($outputDir);
+ mkdir($outputDir);
166
+ $this->tempDir[] = $outputDir;
167
+ }
168
169
$configuration = new $configurationClass();
170
$rootNode = $configuration->getConfigTreeBuilder()->buildTree();
0 commit comments