command = new DevTestsRunCommand(); } public function testExecuteBadType() { $commandTester = new CommandTester($this->command); $commandTester->execute([DevTestsRunCommand::INPUT_ARG_TYPE => 'bad']); $this->assertContains('Invalid type: "bad"', $commandTester->getDisplay()); } }