Skip to content

Commit 3dc21d3

Browse files
authored
test: reset CLI state before each ConsoleTest so random order keeps the leading newline (#10562)
1 parent 1a9ba5e commit 3dc21d3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/system/CLI/ConsoleTest.php‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ protected function setUp(): void
4040
parent::setUp();
4141

4242
Services::injectMock('superglobals', new Superglobals());
43+
CLI::reset();
4344
CLI::init();
4445

4546
(new DotEnv(ROOTPATH))->load();

0 commit comments

Comments
 (0)