public function commandShouldFail() { if ($this->lastReturnCode === 0) { throw new \Exception(sprintf("Command should fail %b", $this->lastReturnCode)); } }