extensions/webunit_reporter.php
public function paintFooter($test_name)
        {
            echo 'make_tree();</script>' . $this->outputScript("xHide('wait');");
            $colour  = ($this->getFailCount() + $this->getExceptionCount() > 0 ? 'red' : 'green');
            $content = "<h1>$test_name</h1>\n";
            $content .= '<div style="';
            $content .= "padding: 8px; margin-top: 1em; background-color: $colour; color: white;";
            $content .= '">';
            $content .= $this->getTestCaseProgress() . '/' . $this->getTestCaseCount();
            $content .= " test cases complete:\n";
            $content .= '<strong>' . $this->getPassCount() . '</strong> passes, ';
            $content .= '<strong>' . $this->getFailCount() . '</strong> fails and ';
            $content .= '<strong>' . $this->getExceptionCount() . '</strong> exceptions.';
            $content .= "</div>\n";

            echo $this->outputScript('foo = "' . $this->toJsString($content) . '";' . "\nset_div_content('run', foo);");
            echo "\n</body>\n</html>\n";
        }
public function paintFooter($test_name)
        {
            echo 'make_tree();</script>' . $this->outputScript("xHide('wait');");
            $colour  = ($this->getFailCount() + $this->getExceptionCount() > 0 ? 'red' : 'green');
            $content = "<h1>$test_name</h1>\n";
            $content .= '<div style="';
            $content .= "padding: 8px; margin-top: 1em; background-color: $colour; color: white;";
            $content .= '">';
            $content .= $this->getTestCaseProgress() . '/' . $this->getTestCaseCount();
            $content .= " test cases complete:\n";
            $content .= '<strong>' . $this->getPassCount() . '</strong> passes, ';
            $content .= '<strong>' . $this->getFailCount() . '</strong> fails and ';
            $content .= '<strong>' . $this->getExceptionCount() . '</strong> exceptions.';
            $content .= "</div>\n";

            echo $this->outputScript('foo = "' . $this->toJsString($content) . '";' . "\nset_div_content('run', foo);");
            echo "\n</body>\n</html>\n";
        }
Paints the end of the test with a summary of the passes and failures.

@param string $test_name        Name class of test.