Autorunner which runs all tests cases found in a file that includes this module.

 require_once (dirname(__FILE__).'/collector.php') (line 14)

include simpletest files

 require_once (dirname(__FILE__).'/unit_tester.php') (line 12)

include simpletest files

 require_once (dirname(__FILE__).'/default_reporter.php') (line 15)

include simpletest files

 require_once (dirname(__FILE__).'/mock_objects.php') (line 13)

include simpletest files

capture_new_classes (line 93)

Every class since the first autorun include. This is safe enough if require_once() is always used.

  • return: Class names.
array capture_new_classes ()
initial_file (line 75)

The first autorun file.

  • return: Filename of first autorun script.
string initial_file ()
run_local_tests (line 42)

run all recent test cases if no test has so far been run. Uses the DefaultReporter which can have it's output controlled with SimpleTest::prefer().

  • return: false if there were test failures, true if there were no failures, null if tests are already running
boolean/null run_local_tests ()
simpletest_autorun (line 24)

Exit handler to run all recent test cases and exit system if in CLI

void simpletest_autorun ()
tests_have_run (line 64)

Checks the current test context to see if a test has ever been run.

  • return: True if tests have run.
boolean tests_have_run ()

Documentation generated on Sun, 31 Oct 2010 16:30:55 -0500 by phpDocumentor 1.4.3