public function testException($options = ['task' => false]) { if (!$options['task']) { throw new \RuntimeException('Command failed with an exception.'); } throw new \RuntimeException('Task failed with an exception.'); }