PHPUnit_Framework_TestResult::time PHP Method

time() public method

Returns the time spent running the tests.
public time ( ) : float
return float
    public function time()
    {
        return $this->time;
    }

Usage Example

Beispiel #1
0
 public function runStep(Step $step)
 {
     $result = null;
     $this->fire(Events::STEP_BEFORE, new StepEvent($this, $step));
     try {
         $result = $step->run($this->moduleContainer);
     } catch (ConditionalAssertionFailed $f) {
         $this->testResult->addFailure(clone $this, $f, $this->testResult->time());
     } catch (\Exception $e) {
         $this->fire(Events::STEP_AFTER, new StepEvent($this, $step));
         throw $e;
     }
     $this->fire(Events::STEP_AFTER, new StepEvent($this, $step));
     return $result;
 }
All Usage Examples Of PHPUnit_Framework_TestResult::time