Fix missing numbers when pass/fail count is zero.
[htmlpurifier.git] / tests / HTMLPurifier / SimpleTest / TextReporter.php
blob56204e7a38afc27370ee78538c869b26d02235b5
1 <?php
3 class HTMLPurifier_SimpleTest_TextReporter extends TextReporter {
4 protected $verbose = false;
5 function __construct($AC) {
6 parent::__construct();
7 $this->verbose = $AC['verbose'];
9 function paintPass($message) {
10 parent::paintPass($message);
11 if ($this->verbose) {
12 print 'Pass ' . $this->getPassCount() . ") $message\n";
13 $breadcrumb = $this->getTestList();
14 array_shift($breadcrumb);
15 print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
16 print "\n";
21 // vim: et sw=4 sts=4