/** * @param CommandResult $result */ public function error(CommandResult $result) { $this->errors[$result->getResultId()] = $result; }
/** * Create a stub of a command result for testing * @param array $output The output of exec * @param int $statusCode The shell return status */ public function __construct($output, $statusCode) { parent::__construct(self::echoCmd(), $output, $statusCode); }