Merge pull request #9123 from open-sausages/pulls/4.3/increase-memory-limit-max

FIX core memory limit test
This commit is contained in:
Garion Herman 2019-07-12 17:08:42 +12:00 committed by GitHub
commit 9efe9e96eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'));
}