extensions/junit_xml_reporter.php
public function paintFooter($test_name)
    {
        echo "-->\n";

        $duration = microtime(true) - $this->testsStart;

        $this->root->setAttribute('tests', $this->getPassCount() + $this->getFailCount() + $this->getExceptionCount());
        $this->root->setAttribute('failures', $this->getFailCount());
        $this->root->setAttribute('errors', $this->getExceptionCount());
        $this->root->setAttribute('time', $duration);

        $this->doc->formatOutput = true;
        $xml                     = $this->doc->saveXML();
        // Cut out XML declaration
        echo preg_replace('/<\?[^>]*\?>/', '', $xml);
        echo "\n";
    }
public function paintFooter($test_name)
    {
        echo "-->\n";

        $duration = microtime(true) - $this->testsStart;

        $this->root->setAttribute('tests', $this->getPassCount() + $this->getFailCount() + $this->getExceptionCount());
        $this->root->setAttribute('failures', $this->getFailCount());
        $this->root->setAttribute('errors', $this->getExceptionCount());
        $this->root->setAttribute('time', $duration);

        $this->doc->formatOutput = true;
        $xml                     = $this->doc->saveXML();
        // Cut out XML declaration
        echo preg_replace('/<\?[^>]*\?>/', '', $xml);
        echo "\n";
    }
public function paintFooter ( $ test_name ) { echo "-->\n" ; $ duration = microtime ( true ) - $ this -> testsStart ; $ this -> root -> setAttribute ( 'tests' , $ this -> getPassCount ( ) + $ this -> getFailCount ( ) + $ this -> getExceptionCount ( ) ) ; $ this -> root -> setAttribute ( 'failures' , $ this -> getFailCount ( ) ) ; $ this -> root -> setAttribute ( 'errors' , $ this -> getExceptionCount ( ) ) ; $ this -> root -> setAttribute ( 'time' , $ duration ) ; $ this -> doc -> formatOutput = true ; $ xml = $ this -> doc -> saveXML ( ) ; // Cut out XML declaration echo preg_replace ( '/<\?[^>]*\?>/' , '' , $ xml ) ; echo "\n" ; }
Paints the end of the test with a summary of the passes and failures.

@param string $test_name        Name class of test.
Paints the end of the test with a summary of the passes and failures .