mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Moving restore_error_handler up into TestManager and out of CakeTestSuite.
This commit is contained in:
parent
d1a06f3c20
commit
747847e275
2 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue