From 43c184b2d254b2b8d1c18b5187d4713def7447fc Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 28 Nov 2010 21:05:12 -0500 Subject: [PATCH] Fixing issues with CLI test runner where the error handler would continue to be cakephp's instead of PHPUnit's. --- cake/console/shells/testsuite.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cake/console/shells/testsuite.php b/cake/console/shells/testsuite.php index 67f2743d536..8814242a239 100644 --- a/cake/console/shells/testsuite.php +++ b/cake/console/shells/testsuite.php @@ -253,6 +253,10 @@ public function main() { */ protected function run($runnerArgs, $options = array()) { require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_runner.php'; + + restore_error_handler(); + restore_error_handler(); + $testCli = new TestRunner($runnerArgs); $testCli->run($options); }