SimpleTest.php 517 B

123456789101112131415161718192021222324
  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. $this->_path = $path;
  10. parent::__construct($path);
  11. }
  12. public function testPhpt() {
  13. $suite = new PHPT_Suite(array($this->_path));
  14. $phpt_reporter = new PHPT_Reporter_SimpleTest($this->reporter);
  15. $suite->run($phpt_reporter);
  16. }
  17. }
  18. // vim: et sw=4 sts=4