Skip to content

Commit

Permalink
aded parent setUpBeforeClass/tearDownAfterClass
Browse files Browse the repository at this point in the history
  • Loading branch information
saeideng committed Sep 24, 2017
1 parent 41de250 commit d7af0de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/TestCase/Controller/ControllerTest.php
Expand Up @@ -274,6 +274,7 @@ public function tearDown()
*/
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
self::$error_level = error_reporting();
}

Expand All @@ -284,6 +285,7 @@ public static function setUpBeforeClass()
*/
public static function tearDownAfterClass()
{
parent::tearDownAfterClass();
error_reporting(self::$error_level);
}

Expand Down

0 comments on commit d7af0de

Please sign in to comment.