Class GroupTest

Description

This is a composite test class for combining test cases and other RunnableTest classes into a group test.

Located in /libraries/pear/simpletest/simple_test.php (line 501)


	
			
Direct descendents
Class Description
 class UnitTests This is a composite test class for combining test cases and other RunnableTest classes into a group test.
 class AllTests This is a composite test class for combining test cases and other RunnableTest classes into a group test.
Variable Summary
 mixed $_label
 mixed $_test_cases
Method Summary
 GroupTest GroupTest (string $label)
 void addTestCase (SimpleTestCase &$test_case)
 void addTestClass (mixed $class, SimpleTestCase $test_case)
 void addTestFile (string $test_file)
 string getLabel ()
 integer getSize ()
 void run (SimpleReporter &$reporter)
 void _isTestCase (string $class)
Variables
mixed $_label (line 502)
mixed $_test_cases (line 503)
Methods
Constructor GroupTest (line 511)

Sets the name of the test suite.

  • access: public
GroupTest GroupTest (string $label)
  • string $label: Name sent at the start and end of the test.
addTestCase (line 533)

Adds a test into the suite. Can be either a group test or some other unit test.

  • access: public
void addTestCase (SimpleTestCase &$test_case)
  • SimpleTestCase $test_case: Suite or individual test case implementing the runnable test interface.
addTestClass (line 545)

Adds a test into the suite by class name. The class will be instantiated as needed.

  • access: public
void addTestClass (mixed $class, SimpleTestCase $test_case)
  • SimpleTestCase $test_case: Suite or individual test case implementing the runnable test interface.
addTestFile (line 556)

Builds a group test from a library of test cases.

The new group is composed into this one.

  • access: public
void addTestFile (string $test_file)
  • string $test_file: File name of library with test case classes.
getLabel (line 521)

Accessor for the test name for subclasses.

  • return: Name of the test.
  • access: public
string getLabel ()
getSize (line 616)

Number of contained test cases.

  • return: Total count of cases in the group.
  • access: public
integer getSize ()
run (line 596)

Invokes run() on all of the held test cases, instantiating them if necessary.

  • access: public
void run (SimpleReporter &$reporter)
_isTestCase (line 581)

Test to see if a class is derived from the TestCase class.

  • access: private
void _isTestCase (string $class)
  • string $class: Class name.

Documentation generated on Fri, 11 Feb 2005 18:14:05 +0000 by phpDocumentor 1.3.0RC3