TextReporter.php 612 B

123456789101112131415161718192021
  1. <?php
  2. class HTMLPurifier_SimpleTest_TextReporter extends TextReporter {
  3. protected $verbose = false;
  4. function __construct($AC) {
  5. parent::__construct();
  6. $this->verbose = $AC['verbose'];
  7. }
  8. function paintPass($message) {
  9. parent::paintPass($message);
  10. if ($this->verbose) {
  11. print 'Pass ' . $this->getPassCount() . ") $message\n";
  12. $breadcrumb = $this->getTestList();
  13. array_shift($breadcrumb);
  14. print "\tin " . implode("\n\tin ", array_reverse($breadcrumb));
  15. print "\n";
  16. }
  17. }
  18. }
  19. // vim: et sw=4 sts=4