{ // override the default implementation which uses fputs to stdout echo $buffer; } } $printer = new MYResultPrinter(); $aTestRunner->setPrinter($printer); /********************************************************** * Get our test suite /**********************************************************/ require_once 'TestSuite.php'; $suite = SDO_DAS_Relational_TestSuite::suite(); /********************************************************** * Run it /**********************************************************/ $result = $aTestRunner->doRun($suite); /** * can call the test runner with extra parameters also: $coverageDataFile = FALSE; $coverageHTMLFile = FALSE; $coverageTextFile = FALSE; $testdoxHTMLFile = FALSE; $testdoxTextFile = FALSE; $xmlLogfile = FALSE; $wait = FALSE; $result = $aTestRunner->doRun( $suite, $coverageDataFile, $coverageHTMLFile, $coverageTextFile,
/** * @param PHPUnit2_Framework_Test $suite * @access public * @static */ public static function runAndWait(PHPUnit2_Framework_Test $suite) { $aTestRunner = new PHPUnit2_TextUI_TestRunner(); $aTestRunner->doRun($suite, true); }