Skip to content

Commit ec7ca3a

Browse files
author
Rokas Mikalkėnas
committed
[Dotenv] Run test in a separate process to have clean global state
1 parent c7d7ce9 commit ec7ca3a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Dotenv/Tests/Command/DebugCommandTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ public function testScenario2InProdEnvWithNameFilterPrefix()
207207
$this->assertStringContainsString('TEST 1234 1234 1234 0000', $output);
208208
}
209209

210+
/**
211+
* @runInSeparateProcess
212+
*/
210213
public function testCompletion()
211214
{
212215
$env = 'prod';
@@ -217,7 +220,7 @@ public function testCompletion()
217220

218221
$command = new DebugCommand($env, $projectDirectory);
219222
$tester = new CommandCompletionTester($command);
220-
$this->assertSame(['FOO', 'HELLO', 'TEST', 'TEST123'], $tester->complete(['']));
223+
$this->assertSame(['FOO', 'TEST'], $tester->complete(['']));
221224
}
222225

223226
private function executeCommand(string $projectDirectory, string $env, array $input = []): string

0 commit comments

Comments
 (0)