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 344)

RunnableTest
   |
   --GroupTest
Direct descendents
Class Description
 class AllTests This is a composite test class for combining test cases and other RunnableTest classes into a group test.
 class UnitTests This is a composite test class for combining test cases and other RunnableTest classes into a group test.
Variable Summary
 mixed $_test_cases
Method Summary
 GroupTest GroupTest (string $label)
 void addTestCase (SimpleTestCase &$test_case)
 void addTestFile (string $test_file)
 integer getSize ()
 void ignore ([mixed $class = false])
 void run (SimpleReporter &$reporter)
 void _isTestCase (string $class)
Variables
mixed $_test_cases (line 345)

Inherited Variables

Inherited from RunnableTest

RunnableTest::$_label
Methods
Constructor GroupTest (line 353)

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 365)

Adds a test into the suite.

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

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.
getSize (line 429)

Number of contained test cases.

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

Redefinition of:
RunnableTest::getSize()
Accessor for the number of subtests.
ignore (line 440)
  • deprecated:
void ignore ([mixed $class = false])
run (line 415)

Invokes run() on all of the held test cases.

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

Redefinition of:
RunnableTest::run()
Runs the top level test for this class.
_isTestCase (line 401)

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

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

Inherited Methods

Inherited From RunnableTest

 RunnableTest::RunnableTest()
 RunnableTest::getLabel()
 RunnableTest::getSize()
 RunnableTest::run()

Documentation generated on Fri, 10 Dec 2004 18:26:25 +0000 by phpDocumentor 1.3.0RC3