Example #1
0
 /**
  * Return test execution time
  *
  * @return string
  * @see    ____func_see____
  * @since  1.0.0
  */
 private function getExecTime()
 {
     $time = number_format($this->end['time'] - $this->start['time'], 4);
     $message = trim($this->getMessage('', get_called_class(), $this->getName()));
     if (strlen($message) > self::$messageLength) {
         self::$messageLength = strlen($message) + 1;
     }
     return sprintf('%\'.-' . self::$messageLength . 's', trim($message)) . ' ' . sprintf('%8s', $time) . ' sec .....';
 }