Moving restore_error_handler up into TestManager and out of CakeTestSuite.

This commit is contained in:
mark_story 2010-06-21 22:54:41 -04:00
parent d1a06f3c20
commit 747847e275
2 changed files with 3 additions and 2 deletions

View file

@ -43,8 +43,6 @@ class CakeTestSuite extends PHPUnit_Framework_TestSuite {
*/
protected function setUp() {
parent::setUp();
restore_error_handler();
restore_error_handler();
if (!$this->_fixtureManager) {
return;
}

View file

@ -184,6 +184,9 @@ class TestManager {
* @return mixed Results of group test being run.
*/
protected function run($reporter, $codeCoverage = false) {
restore_error_handler();
restore_error_handler();
$result = new PHPUnit_Framework_TestResult;
$result->collectCodeCoverageInformation($codeCoverage);
$result->addListener($reporter);