public function execute() { if ($this->getOption('error')) { $this->error('CRASHTEST: error', true); } if ($this->getOption('exception')) { throw new Exception('CRASHTEST: uncaught exception'); } if ($this->getOption('fatal')) { $this->error('CRASHTEST: fatal'); $everything_and_nothing = FOO::BAR(); } $this->error('CRASHTEST: should not reach this line.'); }