\PHPUnit_Extensions_TestDecorator

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.

Synopsis

class PHPUnit_Extensions_TestDecorator extends PHPUnit_Framework_Assert implements PHPUnit_Framework_Test,PHPUnit_Framework_SelfDescribing {
  • // members
  • protected  $test;
}

Hierarchy

Members

protected

Methods

protected

public

  • __construct() — Constructor.
  • basicRun() — Runs the test and collects the result in a TestResult.
  • count() — Counts the number of test cases that will be run by this test.
  • getTest() — Returns the test to be run.
  • run() — Runs the decorated test and collects the result in a TestResult.
  • toString() — Returns a string representation of the test.

Inherited from PHPUnit_Framework_Assert

public

History