Class RunnableTest

Description

Interface used by the test displays and group tests.

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


	
			
Direct descendents
Class Description
 class RemoteTestCase Runs an XML formated test on a remote server.
 class SimpleTestCase Basic test case. This is the smallest unit of a test suite. It searches for all methods that start with the the string "test" and runs them. Working test cases extend this class.
 class GroupTest This is a composite test class for combining test cases and other RunnableTest classes into a group test.
Variable Summary
 mixed $_label
Method Summary
 RunnableTest RunnableTest (string $label)
 string getLabel ()
 integer getSize ()
 boolean run (SimpleReporter &$reporter)
Variables
mixed $_label (line 25)
Methods
Constructor RunnableTest (line 32)

Sets up the test name.

  • access: public
RunnableTest RunnableTest (string $label)
  • string $label: Name of test.
getLabel (line 41)

Accessor for the test name for subclasses.

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

Accessor for the number of subtests.

  • return: Number of test cases.
  • access: public
integer getSize ()

Redefined in descendants as:
run (line 52)

Runs the top level test for this class.

  • return: True if no failures.
  • abstract:
  • access: public
boolean run (SimpleReporter &$reporter)

Redefined in descendants as:
  • RemoteTestCase::run() : Runs the top level test for this class. Currently reads the data as a single chunk. I'll fix this once I have added iteration to the browser.
  • SimpleTestCase::run() : Uses reflection to run every method within itself starting with the string "test".
  • GroupTest::run() : Invokes run() on all of the held test cases.

Documentation generated on Thu, 20 Jan 2005 17:10:55 +0000 by phpDocumentor 1.3.0RC3