From af68030fcf0c266300feb2c100149ecadef7d364 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 16 Jul 2006 01:50:23 +0000 Subject: Merge from 3.0 branch till 1264. --- tests/test_tools/simpletest/exceptions.php | 46 ++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/test_tools/simpletest/exceptions.php (limited to 'tests/test_tools/simpletest/exceptions.php') diff --git a/tests/test_tools/simpletest/exceptions.php b/tests/test_tools/simpletest/exceptions.php new file mode 100644 index 00000000..949f2936 --- /dev/null +++ b/tests/test_tools/simpletest/exceptions.php @@ -0,0 +1,46 @@ +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 -- cgit v1.2.3