SimpleReporter();
}
function paintFooter($test_name) {
global $tfile;
$class = $this->getFailCount() + $this->getExceptionCount() > 0 ? "red" : "green";
print "
";
print "
$test_name (";
print $this->getTestCaseProgress() . "/" . $this->getTestCaseCount();
print ")
\n";
print "
" . $this->getPassCount() . " passes | ";
print "
" . $this->getFailCount() . " fails | ";
print "
" . $this->getExceptionCount() . " exceptions.";
print "
\n";
flush();
}
}
echo <<
ALL TESTS
EOF;
foreach (glob(PATH.'/*_*.php') as $tfile) {
$reporter = new MyReporter;
require_once($tfile);
}
print "\n