function paintPass($message) { print "pass " . $message; } function paintFail($message) { print "fail " . $message; } } $reporter = new TestOfTestReporter(); $event = new TestStart("1"); print "<li>Expecting event label [1] got ["; $event->paint($reporter); print "]</li>\n"; $event = new TestEnd("2"); print "<li>Expecting event label [2] got ["; $event->paint($reporter); print "]</li>\n"; $event = new TestResult(true, "3"); print "<li>Expecting event label [pass 3] got ["; $event->paint($reporter); print "]</li>\n"; $event = new TestResult(false, "4"); print "<li>Expecting event label [fail 4] got ["; $event->paint($reporter); print "]</li>\n"; ?> </ol> </body> </html>