setApplication(new Shell()); $tester = new CommandTester($command); $tester->execute([]); $this->assertStringContainsString(Shell::VERSION, $tester->getDisplay()); } }