XmlReporter::paintMethodEnd PHP Метод

paintMethodEnd() публичный Метод

Paints the end of a test method.
public paintMethodEnd ( string $test_name )
$test_name string Name of test that is ending.
    public function paintMethodEnd($test_name)
    {
        print $this->getIndent();
        print '</' . $this->namespace . "test>\n";
        parent::paintMethodEnd($test_name);
    }

Usage Example

 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;
 }
All Usage Examples Of XmlReporter::paintMethodEnd