Skip to content

Commit

Permalink
Moving restore_error_handler up into TestManager and out of CakeTestS…
Browse files Browse the repository at this point in the history
…uite.
  • Loading branch information
markstory committed Jun 22, 2010
1 parent d1a06f3 commit 747847e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cake/tests/lib/cake_test_suite.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ public function setFixtureManager(CakeFixtureManager $manager) {
*/
protected function setUp() {
parent::setUp();
restore_error_handler();
restore_error_handler();
if (!$this->_fixtureManager) {
return;
}
Expand Down
3 changes: 3 additions & 0 deletions cake/tests/lib/test_manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 747847e

Please sign in to comment.