diff options
Diffstat (limited to 'tests/test_tools/simpletest/exceptions.php')
-rw-r--r-- | tests/test_tools/simpletest/exceptions.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/test_tools/simpletest/exceptions.php b/tests/test_tools/simpletest/exceptions.php deleted file mode 100644 index 30d35386..00000000 --- a/tests/test_tools/simpletest/exceptions.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php - /** - * base include file for SimpleTest - * @package SimpleTest - * @subpackage UnitTester - * @version $Id: exceptions.php 1398 2006-09-08 19:31:03Z xue $ - */ - - /**#@+ - * Includes SimpleTest files and defined the root constant - * for dependent libraries. - */ - require_once(dirname(__FILE__) . '/invoker.php'); - - /** - * Extension that traps exceptions and turns them into - * an error message. - * @package SimpleTest - * @subpackage UnitTester - */ - class SimpleExceptionTrappingInvoker extends SimpleInvokerDecorator { - - /** - * Stores the invoker to be wrapped. - * @param SimpleInvoker $invoker Test method runner. - */ - function SimpleExceptionTrappingInvoker($invoker) { - $this->SimpleInvokerDecorator($invoker); - } - - /** - * Invokes a test method and dispatches any - * untrapped errors. - * @param string $method Test method to call. - * @access public - */ - function invoke($method) { - try { - parent::invoke($method); - } catch (Exception $exception) { - $test_case = $this->getTestCase(); - $test_case->exception($exception); - } - } - }
\ No newline at end of file |