Наследование: extends SimpleReporter
 function paintMethodEnd($test_name)
 {
     $post = microtime();
     if ($this->pre != null) {
         $duration = $post - $this->pre;
         // how can post time be less than pre?  assuming zero if this happens..
         if ($post < $this->pre) {
             $duration = 0;
         }
         print $this->getIndent(1);
         print "<time>{$duration}</time>\n";
     }
     parent::paintMethodEnd($test_name);
     $this->pre = null;
 }
 function paintSignal($type, $payload)
 {
     $this->captureStart();
     $this->logger->paintSignal($type, $payload);
     $this->captureStop();
 }
Пример #3
0
 function paintMethodEnd($test_name)
 {
     print $this->_getIndent(1);
     print "<" . $this->_namespace . "time>" . $this->toParsedXml($this->t() - $this->methodStart) . "</" . $this->_namespace . "time>\n";
     parent::paintMethodEnd($test_name);
 }
Пример #4
0
 function paintMethodEnd($method)
 {
     parent::paintMethodEnd($method);
     parent::paintCaseEnd($this->_case);
     parent::paintGroupEnd($this->_group);
 }