public function testCheckPhpSettingsMemoryLimitError() { $this->dataSize->expects($this->any())->method('convertSizeToBytes')->willReturnMap([['512M', 512], ['756M', 756], ['2G', 2048]]); $rawPostMessage = 'Your current PHP memory limit is 512M. Magento 2 requires it to be set to 756M or more. As a user with root privileges, edit your php.ini file to increase memory_limit. (The command php --ini tells you where it is located.) After that, restart your web server and try again.'; $expected['memory_limit'] = ['message' => $rawPostMessage, 'error' => true, 'warning' => false]; $this->assertEquals($expected, $this->phpReadinessCheck->checkMemoryLimit()); }