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.

SimpleTest.php 525B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Controller for PHPT that implements the SimpleTest unit-testing interface.
  4. */
  5. class PHPT_Controller_SimpleTest extends SimpleTestCase
  6. {
  7. protected $_path;
  8. public function __construct($path)
  9. {
  10. $this->_path = $path;
  11. parent::__construct($path);
  12. }
  13. public function testPhpt()
  14. {
  15. $suite = new PHPT_Suite(array($this->_path));
  16. $phpt_reporter = new PHPT_Reporter_SimpleTest($this->reporter);
  17. $suite->run($phpt_reporter);
  18. }
  19. }
  20. // vim: et sw=4 sts=4