cakephp2-php8/vendors/simpletest/test/unit_tests.php
phpnut 57ef2eba9b merging changes from [428]
git-svn-id: https://svn.cakephp.org/repo/trunk/cake@430 3807eeeb-6ff5-0310-8944-8be069107fe0
2005-07-30 02:26:59 +00:00

16 lines
No EOL
426 B
PHP

<?php
// $Id$
if (! defined('TEST')) {
define('TEST', __FILE__);
}
require_once(dirname(__FILE__) . '/test_groups.php');
require_once(dirname(__FILE__) . '/../reporter.php');
if (TEST == __FILE__) {
$test = &new UnitTests();
if (SimpleReporter::inCli()) {
exit ($test->run(new TextReporter()) ? 0 : 1);
}
$test->run(new HtmlReporter());
}
?>