PHPUnit
[ class tree: PHPUnit ] [ index: PHPUnit ] [ all elements ]

Class: PHPUnit_TestDecorator

Source Location: /PHPUnit-1.3.2/PHPUnit/TestDecorator.php

Class Overview


A Decorator for Tests.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2005 Sebastian Bergmann <sb@sebastian-bergmann.de>

Variables

Methods


Child classes:

PHPUnit_RepeatedTest
A Decorator that runs a test repeatedly.

Inherited Variables

Inherited Methods


Class Details

[line 72]
A Decorator for Tests.

Use TestDecorator as the base class for defining new test decorators. Test decorator subclasses can be introduced to add behaviour before or after a test is run.



[ Top ]


Class Variables

$_test =  NULL

[line 79]

The Test to be decorated.
  • Access: protected

Type:   object


[ Top ]



Method Detail

PHPUnit_TestDecorator (Constructor)   [line 87]

PHPUnit_TestDecorator PHPUnit_TestDecorator( object &$test)

Constructor.
  • Access: public

Parameters:

object   &$test     

[ Top ]

basicRun   [line 103]

void basicRun( object &$result)

Runs the test and collects the result in a TestResult.
  • Access: public

Parameters:

object   &$result     

[ Top ]

countTestCases   [line 114]

integer countTestCases( )

Counts the number of test cases that will be run by this test.
  • Access: public

Overridden in child classes as:

PHPUnit_RepeatedTest::countTestCases()
Counts the number of test cases that will be run by this test.

[ Top ]

getTest   [line 124]

object &getTest( )

Returns the test to be run.
  • Access: public

[ Top ]

run   [line 136]

void run( object &$result)

Runs the decorated test and collects the result in a TestResult.
  • Abstract:
  • Access: public

Overridden in child classes as:

PHPUnit_RepeatedTest::run()
Runs the decorated test and collects the result in a TestResult.

Parameters:

object   &$result     

[ Top ]

toString   [line 144]

string toString( )

Returns a string representation of the test.
  • Access: public

[ Top ]


Documentation generated on Thu, 10 Nov 2005 05:02:24 -0500 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.