| // +----------------------------------------------------------------------+ // // $Id$ /** * Unit tests for Console_Getargs package. */ require_once 'Console/Getargs.php'; require_once 'PHPUnit.php'; require_once './Console_TestListener.php'; $testFiles = array( 'Getargs_basic_testcase.php' => 'Getargs_Basic_testCase', 'Getargs_getValues_testcase.php' => 'Getargs_getValues_testCase' ); $suite =& new PHPUnit_TestSuite(); foreach ($testFiles as $file => $testsuite) { require_once $file; $tmp = new PHPUnit_TestSuite($testsuite); $suite->addTest($tmp); } $result =& new PHPUnit_TestResult(); $result->addListener(new Console_TestListener); $suite->run($result); ?>