Пример #1
0
 /**
  * After an it() spec we need to tear down the test case.
  *
  * @param Spec $spec
  */
 public function afterSpec(Spec $spec)
 {
     $time = 0;
     if ($spec->isFailed()) {
         self::$result->addFailure(self::$test, new PHPUnit_Framework_AssertionFailedError($spec->exception), $time);
     } elseif ($spec->isIncomplete()) {
         self::$result->addFailure(self::$test, new PHPUnit_Framework_IncompleteTestError($spec->exception), $time);
     }
     self::$testCase->tearDown();
     self::$result->endTest(self::$test, $time);
 }