DrupalTests Class Reference

Inheritance diagram for DrupalTests:
[legend]
Collaboration diagram for DrupalTests:
[legend]

List of all members.


Public Member Functions

 DrupalTests ($class_list=NULL)
 _addClassToGroups (&$groups, $class)
 run (&$reporter)
 getFiles ()
 classIsTest ($class)
 cleanupBeforeRun ()


Detailed Description

Definition at line 29 of file drupal_test_suite.php.


Member Function Documentation

DrupalTests::DrupalTests ( class_list = NULL  ) 

Constructor for the DrupalTests class.

Parameters:
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().

Here is the call graph for this function:

DrupalTests::_addClassToGroups ( &$  groups,
class 
)

Adds a class to a groups array specified by the getInfo() of the group.

Parameters:
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.

Parameters:
SimpleReporter $reporter Current test reporter. public

Reimplemented from TestSuite.

Definition at line 100 of file drupal_test_suite.php.

References $result, and cleanupBeforeRun().

Here is the call graph for this function:

DrupalTests::getFiles (  ) 

Gets the files which contains the tests.

Returns:
A list of files that 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().

Here is the call graph for this function:

DrupalTests::classIsTest ( class  ) 

Determines whether the class is a test.

Returns:
TRUE / FALSE depending on 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().

Here is the call graph for this function:


The documentation for this class was generated from the following file:

Generated on Mon Jun 2 15:09:05 2008 for SimpleTest by  1.5.5