Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/simpletestlib/autorun.php File Reference

Go to the source code of this file.

Namespaces

namespace  SimpleTest

Functions

 simpletest_autorun ()
 tests_have_run ()
 initial_file ()
 classes_defined_in_initial_file ()
 capture_new_classes ()

Variables

 $GLOBALS ['SIMPLETEST_AUTORUNNER_INITIAL_CLASSES'] = get_declared_classes()

Function Documentation

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

Returns:
array Class names.

Definition at line 81 of file autorun.php.

Here is the caller graph for this function:

Just the classes from the first autorun script. May get a few false positives, as it just does a regex based on following the word "class".

Returns:
array List of all possible classes in first autorun script.

Definition at line 69 of file autorun.php.

Here is the call graph for this function:

Here is the caller graph for this function:

The first autorun file.

Returns:
string Filename of first autorun script.

Definition at line 54 of file autorun.php.

Here is the caller graph for this function:

Exit handler to 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().

Definition at line 21 of file autorun.php.

Here is the call graph for this function:

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

Returns:
boolean True if tests have run.

Definition at line 43 of file autorun.php.

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

$GLOBALS['SIMPLETEST_AUTORUNNER_INITIAL_CLASSES'] = get_declared_classes()

Definition at line 13 of file autorun.php.

 All Data Structures Namespaces Files Functions Variables Enumerations