/** * @param IInput $input * @param IOutput $output * @param IConsole $console * * @return bool */ public function run(IInput $input, IOutput $output, IConsole $console) { if ($input->getOption('--passthrough')) { $console->setCatchErrors(false); } }
function it_disables_error_catching(IInput $input, IOutput $output, IConsole $console) { $console->setCatchErrors(false)->shouldBeCalled(); $input->getOption('--passthrough')->willReturn(true); $this->run($input, $output, $console); }