From fcd7a1e63e7013a9f36100a05bf723ed68382d8a Mon Sep 17 00:00:00 2001 From: Serge Latyntcev Date: Fri, 12 Jul 2019 16:30:25 +1200 Subject: [PATCH] FIX core memory limit test --- tests/php/Core/MemoryLimitTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/php/Core/MemoryLimitTest.php b/tests/php/Core/MemoryLimitTest.php index 37dccd8d3..842e77645 100644 --- a/tests/php/Core/MemoryLimitTest.php +++ b/tests/php/Core/MemoryLimitTest.php @@ -66,6 +66,7 @@ class MemoryLimitTest extends SapphireTest // No argument means unlimited (but only if originally allowed) if (is_numeric($this->origMemLimitMax) && $this->origMemLimitMax < 0) { + Environment::setMemoryLimitMax(-1); Environment::increaseMemoryLimitTo(); $this->assertEquals(-1, ini_get('memory_limit')); }