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

Class: PHPUnit_TestDecorator

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

Class Overview


A Decorator for Tests.


Author(s):

Copyright:

  • Copyright &copy; 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 34]
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 41]

The Test to be decorated.
  • Access: protected

Type:   object


[ Top ]



Method Detail

PHPUnit_TestDecorator (Constructor)   [line 49]

PHPUnit_TestDecorator PHPUnit_TestDecorator( object &$test)

Constructor.
  • Access: public

Parameters:

object   &$test   — 

[ Top ]

basicRun   [line 65]

void basicRun( object &$result)

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

Parameters:

object   &$result   — 

[ Top ]

countTestCases   [line 76]

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 86]

object &getTest( )

Returns the test to be run.
  • Access: public

[ Top ]

run   [line 98]

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 106]

string toString( )

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

[ Top ]


Documentation generated on Thu, 10 Dec 2015 05:37:23 +0000 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.