public static function suite() { $suite = new PHPUnit_Framework_TestSuite('PHPUnit'); $suite->addTest(Framework_AllTests::suite()); $suite->addTest(Extensions_AllTests::suite()); $suite->addTest(Runner_AllTests::suite()); $suite->addTest(Util_AllTests::suite()); return $suite; }
public static function suite() { $suite = new PHPUnit_Framework_TestSuite('PHPUnit'); $suite->addTest(Framework_AllTests::suite()); $suite->addTest(Extensions_AllTests::suite()); $suite->addTest(Runner_AllTests::suite()); $suite->addTest(Util_AllTests::suite()); $suite->addTest(new PHPUnit_Extensions_PhptTestSuite(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'TextUI')); return $suite; }
require_once 'PHPUnit/TextUI/TestRunner.php'; require_once 'PHPUnit/Util/Filter.php'; require_once 'Runner/BaseTestRunnerTest.php'; /** * * * @category Testing * @package PHPUnit * @author Sebastian Bergmann <*****@*****.**> * @copyright 2002-2008 Sebastian Bergmann <*****@*****.**> * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @version Release: 3.2.9 * @link http://www.phpunit.de/ * @since Class available since Release 2.0.0 */ class Runner_AllTests { public static function main() { PHPUnit_TextUI_TestRunner::run(self::suite()); } public static function suite() { $suite = new PHPUnit_Framework_TestSuite('PHPUnit_Runner'); $suite->addTestSuite('Runner_BaseTestRunnerTest'); return $suite; } } if (PHPUnit_MAIN_METHOD == 'Runner_AllTests::main') { Runner_AllTests::main(); }