'Codeception functional test memory exhausted
PHP Fatal Error 'yii\base\ErrorException' with message 'Allowed memory size of 25165824 bytes exhausted (tried to allocate 305708 bytes)
codeception.yml says:
memory_limit: 512M
php.ini says:
memory_limit=512M
ini_get('memory_limit') confirms 512M
Here is my test: https://gist.github.com/nsanden/35ea7457bf3c4e9078b5
Here is my codecept run debug https://gist.github.com/nsanden/5ee34b54376f066b9331
Seems codeception won't allow my test to run because its using more than 25MB... Can't seem to allow it more memory.
Running on windows with php 5.6.3 and latest phpunit/codeception
Solution 1:[1]
For those who came from google because this question is the first result (like me), if you are missing the codeception.yml setting which determines the memory_limit in runtime (unlike @Nate),
Add the following inside codeception.yml
settings:
memory_limit: 4096M
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
