Skip to content
Permalink
Browse files

Moving restore_error_handler up into TestManager and out of CakeTestS…

…uite.
  • Loading branch information...
markstory committed Jun 22, 2010
1 parent d1a06f3 commit 747847e2759311c95b6c40d685e3400c41091293
Showing with 3 additions and 2 deletions.
  1. +0 −2 cake/tests/lib/cake_test_suite.php
  2. +3 −0 cake/tests/lib/test_manager.php
@@ -43,8 +43,6 @@ public function setFixtureManager(CakeFixtureManager $manager) {
*/
protected function setUp() {
parent::setUp();
restore_error_handler();
restore_error_handler();
if (!$this->_fixtureManager) {
return;
}
@@ -184,6 +184,9 @@ public function runGroupTest($groupTestName, $reporter, $codeCoverage = false) {
* @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);

0 comments on commit 747847e

Please sign in to comment.
You can’t perform that action at this time.