/**
  * throws exceptions if the command failed
  *
  * @param  ProcessResult $commandResult
  *         the result to check
  * @throws E4xx_ProcessFailed
  */
 public static function checkProcessResult(ProcessResult $commandResult)
 {
     if (DidProcessSucceed::checkProcessResult($commandResult)) {
         return;
     }
     throw new E4xx_ProcessFailed($commandResult);
 }
 /**
  * @covers ::checkProcessResult
  * @dataProvider provideResultsThatFailed
  */
 public function testReturnsFalseIfResultCodeIsNotZero($resultObj)
 {
     // ----------------------------------------------------------------
     // setup your test
     // ----------------------------------------------------------------
     // perform the change
     $actualResult = DidProcessSucceed::check($resultObj);
     // ----------------------------------------------------------------
     // test the results
     $this->assertFalse($actualResult);
 }