Sapphire PHPUnit Test Runner"; echo "
Discovered the following subclasses of SapphireTest for testing: " . implode(", ", $tests) . "
"; echo ""; $suite = new PHPUnit_Framework_TestSuite(); foreach($tests as $test) { $suite->addTest(new PHPUnit_Framework_TestSuite($test)); } PHPUnit_TextUI_TestRunner::run($suite/*, array("reportDirectory" => "/Users/sminnee/phpunit-report")*/); } } } else { class TestRunner extends Controller { function index() { echo "Please install PHPUnit using pear."; } } }