| // +----------------------------------------------------------------------+ // // $Id$ /** * Unit tests for Console_Getargs package. */ if (!defined('PHPUnit_MAIN_METHOD')) { define('PHPUnit_MAIN_METHOD', 'Console_Getargs_AllTests::main'); } require_once 'PHPUnit/TextUI/TestRunner.php'; chdir(dirname(__FILE__) . '/../'); require_once 'Getargs_basic_testcase.php'; require_once 'Getargs_getValues_testcase.php'; class Console_Getargs_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('Console_Getargs Tests'); /** Add testsuites, if there is. */ $suite->addTestSuite('Getargs_basic_testcase'); $suite->addTestSuite('Getargs_getValues_testcase'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Console_Getargs_AllTests::main') { Console_Getargs_AllTests::main(); } ?>