You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
634B

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