paintMethodEnd() public method

Paints the end of a test method.
public paintMethodEnd ( string $test_name )
$test_name string Name of test that is ending.
 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 paintMethodEnd($test_name)
 {
     $this->captureStart();
     $this->logger->paintMethodEnd($test_name);
     $this->captureStop();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 function paintMethodEnd($method)
 {
     parent::paintMethodEnd($method);
     parent::paintCaseEnd($this->_case);
     parent::paintGroupEnd($this->_group);
 }