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 __construct (SimpleInvoker $invoker)
 void invoke (string $method)
Methods
Constructor __construct (line 28)

Stores the invoker to be wrapped.

SimpleExceptionTrappingInvoker __construct (SimpleInvoker $invoker)

Redefinition of:
SimpleInvokerDecorator::__construct()
Stores the invoker to wrap.
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::__construct()
 SimpleInvokerDecorator::after()
 SimpleInvokerDecorator::before()
 SimpleInvokerDecorator::getTestCase()
 SimpleInvokerDecorator::invoke()

Documentation generated on Sun, 31 Oct 2010 16:31:23 -0500 by phpDocumentor 1.4.3