<?php

class HTMLPurifier_SimpleTest_TextReporter extends TextReporter {
    protected $verbose = false;
    function __construct($AC) {
        $this->verbose = $AC['verbose'];
    }
    function paintPass($message) {
        parent::paintPass($message);
        if ($this->verbose) {
            print 'Pass ' . $this->getPassCount() . ") $message\n";
            $breadcrumb = $this->getTestList();
            array_shift($breadcrumb);
            print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
            print "\n";
        }
    }
}

// vim: et sw=4 sts=4

<?php

class HTMLPurifier_SimpleTest_TextReporter extends TextReporter {
    protected $verbose = false;
    function __construct($AC) {
        parent::__construct();
        $this->verbose = $AC['verbose'];
    }
    function paintPass($message) {
        parent::paintPass($message);
        if ($this->verbose) {
            print 'Pass ' . $this->getPassCount() . ") $message\n";
            $breadcrumb = $this->getTestList();
            array_shift($breadcrumb);
            print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
            print "\n";
        }
    }
}

// vim: et sw=4 sts=4

Fix missing numbers when pass/fail count is zero.
Fix missing numbers when pass/fail count is zero.

Signed-off-by: Edward Z. Yang <71e3051a204377f8d7e885f17897f01c539d4005@thewritingpot.com>
