2008-11-24 01:45:21 +00:00
|
|
|
<?php
|
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
class HTMLPurifier_SimpleTest_TextReporter extends TextReporter
|
|
|
|
{
|
2008-11-24 01:45:21 +00:00
|
|
|
protected $verbose = false;
|
2013-07-16 11:56:14 +00:00
|
|
|
public function __construct($AC)
|
|
|
|
{
|
2008-12-06 21:08:09 +00:00
|
|
|
parent::__construct();
|
2008-11-24 01:45:21 +00:00
|
|
|
$this->verbose = $AC['verbose'];
|
|
|
|
}
|
2013-07-16 11:56:14 +00:00
|
|
|
public function paintPass($message)
|
|
|
|
{
|
2008-11-24 01:45:21 +00:00
|
|
|
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";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2008-12-06 09:24:59 +00:00
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|