Exemplo n.º 1
0
 /**
  * A test ended.
  *
  * @param  \PHPUnit_Framework_Test $test
  * @param  float                  $time
  */
 public function endTest(\PHPUnit_Framework_Test $test, $time)
 {
     $steps = array();
     if ($this->testStatus == \PHPUnit_Runner_BaseTestRunner::STATUS_PASSED) {
         $this->successful++;
         $success = TRUE;
         if ($test instanceof \Codeception\TestCase) {
             $steps = $test->getScenario()->getSteps();
         }
     } else {
         $success = FALSE;
         if ($test instanceof \Codeception\TestCase) {
             $steps = $test->getTrace();
         }
     }
     $this->onTest($test->toString(), $success, $steps, $time);
 }