Class SimpleExceptionTrappingInvoker

Description

Extension that traps exceptions and turns them into an error message. PHP5 only.

Located in /exceptions.php (line 22)

SimpleInvokerDecorator
   |
   --SimpleExceptionTrappingInvoker
Method Summary
 SimpleExceptionTrappingInvoker SimpleExceptionTrappingInvoker (SimpleInvoker $invoker)
 void invoke (string $method)
Variables

Inherited Variables

Inherited from SimpleInvokerDecorator

SimpleInvokerDecorator::$_invoker
Methods
Constructor SimpleExceptionTrappingInvoker (line 28)

Stores the invoker to be wrapped.

SimpleExceptionTrappingInvoker SimpleExceptionTrappingInvoker (SimpleInvoker $invoker)
invoke (line 38)

Invokes a test method whilst trapping expected exceptions. Any left over unthrown exceptions are then reported as failures.

void invoke (string $method)
  • string $method: Test method to call.

Redefinition of:
SimpleInvokerDecorator::invoke()
Invokes a test method and buffered with setUp() and tearDown() calls.

Inherited Methods

Inherited From SimpleInvokerDecorator

 SimpleInvokerDecorator::SimpleInvokerDecorator()
 SimpleInvokerDecorator::after()
 SimpleInvokerDecorator::before()
 SimpleInvokerDecorator::getTestCase()
 SimpleInvokerDecorator::invoke()

Documentation generated on Sun, 04 May 2008 09:21:33 -0500 by phpDocumentor 1.3.0