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