aboutsummaryrefslogtreecommitdiff
path: root/engine/tests/test_skeleton.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/tests/test_skeleton.php')
-rw-r--r--engine/tests/test_skeleton.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/engine/tests/test_skeleton.php b/engine/tests/test_skeleton.php
index 42bbd4ba5..165ab0872 100644
--- a/engine/tests/test_skeleton.php
+++ b/engine/tests/test_skeleton.php
@@ -14,6 +14,8 @@ class ElggCoreSkeletonTest extends ElggCoreUnitTest {
*/
public function __construct() {
parent::__construct();
+
+ // all code should come after here
}
/**
@@ -27,13 +29,15 @@ class ElggCoreSkeletonTest extends ElggCoreUnitTest {
* Called after each test method.
*/
public function tearDown() {
-
+ // do not allow SimpleTest to interpret Elgg notices as exceptions
+ $this->swallowErrors();
}
/**
* Called after each test object.
*/
public function __destruct() {
+ // all code should go above here
parent::__destruct();
}