FIX core memory limit test

This commit is contained in:
Serge Latyntcev 2019-07-12 16:30:25 +12:00
parent b01dc580e1
commit fcd7a1e63e

View File

@ -66,6 +66,7 @@ class MemoryLimitTest extends SapphireTest
// No argument means unlimited (but only if originally allowed) // No argument means unlimited (but only if originally allowed)
if (is_numeric($this->origMemLimitMax) && $this->origMemLimitMax < 0) { if (is_numeric($this->origMemLimitMax) && $this->origMemLimitMax < 0) {
Environment::setMemoryLimitMax(-1);
Environment::increaseMemoryLimitTo(); Environment::increaseMemoryLimitTo();
$this->assertEquals(-1, ini_get('memory_limit')); $this->assertEquals(-1, ini_get('memory_limit'));
} }