diff --git a/dev/SapphireTest.php b/dev/SapphireTest.php index 08faf3504..90abdefe3 100755 --- a/dev/SapphireTest.php +++ b/dev/SapphireTest.php @@ -342,7 +342,7 @@ class SapphireTest extends PHPUnit_Framework_TestCase { function tearDown() { // Preserve memory settings - ini_set('memory_limit', $this->originalMemoryLimit); + ini_set('memory_limit', ($this->originalMemoryLimit) ? $this->originalMemoryLimit : -1); // Restore email configuration Email::set_mailer($this->originalMailer);