SimpleFileLoader Class Reference

List of all members.


Public Member Functions

load ($test_file)
 selectRunnableTests ($candidates)
createSuiteFromClasses ($title, $classes)


Detailed Description

Helps to extract test cases automatically from a file.

Definition at line 318 of file test_case.php.


Member Function Documentation

& SimpleFileLoader::load ( test_file  ) 

Builds a test suite from a library of test cases. The new suite is composed into this one.

Parameters:
string $test_file File name of library with test case classes.
Returns:
TestSuite The new test suite. public

Definition at line 328 of file test_case.php.

References createSuiteFromClasses(), and selectRunnableTests().

Here is the call graph for this function:

SimpleFileLoader::selectRunnableTests ( candidates  ) 

Calculates the incoming test cases. Skips abstract and ignored classes.

Parameters:
array $candidates Candidate classes.
Returns:
array New classes which are test cases that shouldn't be ignored. public

Definition at line 345 of file test_case.php.

References TestSuite::getBaseTestCase(), and SimpleTest::ignore().

Referenced by load().

Here is the call graph for this function:

& SimpleFileLoader::createSuiteFromClasses ( title,
classes 
)

Builds a test suite from a class list.

Parameters:
string $title Title of new group.
array $classes Test classes.
Returns:
TestSuite Group loaded with the new test cases. public

Definition at line 367 of file test_case.php.

References $title, SimpleTest::ignoreParentsIfIgnored(), and SimpleTest::isIgnored().

Referenced by load().

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:12 2008 for SimpleTest by  1.5.5