From 73a9dce4ebbccabb78cc50c9df3cd6150f182a21 Mon Sep 17 00:00:00 2001 From: nickw Date: Tue, 13 Oct 2009 23:12:13 +0000 Subject: Swallowing all Elgg notices within unit tests. By default, SimpleTest converts PHP errors into exceptions. This is restricted by adding a call to swallowErrors() within the tearDown() methods. This has also been noted within the unit test skeleton. git-svn-id: http://code.elgg.org/elgg/trunk@3535 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/tests/objects/entities.php | 1 + 1 file changed, 1 insertion(+) (limited to 'engine/tests/objects/entities.php') diff --git a/engine/tests/objects/entities.php b/engine/tests/objects/entities.php index 0827fa24a..336e2f30d 100644 --- a/engine/tests/objects/entities.php +++ b/engine/tests/objects/entities.php @@ -19,6 +19,7 @@ class ElggCoreEntityTest extends ElggCoreUnitTest { * Called after each test method. */ public function tearDown() { + $this->swallowErrors(); unset($this->entity); } -- cgit v1.2.3