Public Member Functions | |
| DrupalTests ($class_list=NULL) | |
| _addClassToGroups (&$groups, $class) | |
| run (&$reporter) | |
| getFiles () | |
| classIsTest ($class) | |
| cleanupBeforeRun () | |
Definition at line 29 of file drupal_test_suite.php.
| DrupalTests::DrupalTests | ( | $ | class_list = NULL |
) |
Constructor for the DrupalTests class.
| array | $class_list List containing the classes of tests to be processed, defaults to process all tests. |
Definition at line 37 of file drupal_test_suite.php.
References _addClassToGroups(), TestSuite::addTestCase(), classIsTest(), drupal_set_message(), DrupalTestSuite::DrupalTestSuite(), and getFiles().
| DrupalTests::_addClassToGroups | ( | &$ | groups, | |
| $ | class | |||
| ) |
Adds a class to a groups array specified by the getInfo() of the group.
| array | $groups Group of categorized tests. | |
| string | $class Name of the class. |
Definition at line 82 of file drupal_test_suite.php.
Referenced by DrupalTests().
| DrupalTests::run | ( | &$ | reporter | ) |
Invokes run() on all of the held test cases, instantiating them if necessary. The Drupal version uses paintHeader instead of paintGroupStart to avoid collapsing of the very top level.
| SimpleReporter | $reporter Current test reporter. public |
Reimplemented from TestSuite.
Definition at line 100 of file drupal_test_suite.php.
References $result, and cleanupBeforeRun().
| DrupalTests::getFiles | ( | ) |
Gets the files which contains the tests.
Definition at line 115 of file drupal_test_suite.php.
References drupal_get_path(), file_scan_directory(), and module_rebuild_cache().
Referenced by DrupalTests().
| DrupalTests::classIsTest | ( | $ | class | ) |
Determines whether the class is a test.
Definition at line 136 of file drupal_test_suite.php.
Referenced by DrupalTests().
| DrupalTests::cleanupBeforeRun | ( | ) |
Called before the tests are run.
Definition at line 143 of file drupal_test_suite.php.
References cache_clear_all(), and variable_get().
Referenced by run().
1.5.5