/**
  * @param Process $process
  *
  * @return TestCase
  */
 public function test(Process $process)
 {
     $process->run();
     $testcase = new TestCase($process->getCommandLine(), 0);
     $testcase->incAssertions();
     if ($process->getExitCode() != 0) {
         $testcase->setFailure(new TestFailure('exec', $process->getOutput()));
         return $testcase;
     }
     return $testcase;
 }