PHPSpec2\Event\ExampleEvent::getTime PHP Method

getTime() public method

public getTime ( )
    public function getTime()
    {
        return $this->time;
    }

Usage Example

Esempio n. 1
0
 protected function printSlowTime(ExampleEvent $event)
 {
     $ms = $event->getTime() * 1000;
     if ($ms > 100) {
         $this->io->write(sprintf(' <failed>(%sms)</failed>', round($ms)));
     } elseif ($ms > 50) {
         $this->io->write(sprintf(' <pending>(%sms)</pending>', round($ms)));
     }
 }