GroupTest("Drupal unit tests"); $files = module_invoke_all('simpletest'); foreach ($files as $file) { $this->addTestFile($file); } } } if (! defined("TEST_RUNNING")) { define("TEST_RUNNING", true); $test = &new DrupalUnitTests(); if (SimpleReporter::inCli()) { exit ($test->run(new TextReporter()) ? 0 : 1); } $test->run(new HtmlReporter()); } } function simpletest_simpletest() { return 'modules/simpletest/tests/user_validation_test.php'; } ?>