MINOR Fixed memory limit setting in SapphireTest (regression from r106128) (from r106190)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112525 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-10-15 02:59:10 +00:00
parent f0d03207a6
commit 5fe548f7b5

View File

@ -350,7 +350,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);