PHP致命错误'yii\base\ErrorException‘和消息’允许内存大小为25165824字节(试图分配305708字节)
codeception.yml说:
memory_limit: 512Mphp.ini说:
memory_limit=512Mini_get('memory_limit') confirms 512M这是我的测试:https://gist.github.com/nsanden/35ea7457bf3c4e9078b5
这是我的codecept运行调试https://gist.github.com/nsanden/5ee34b54376f066b9331
似乎欺骗不允许我的测试运行,因为它使用超过25 my .似乎不能让它有更多的记忆。
运行在具有php 5.6.3和最新phpunit/协同欺骗的windows上
发布于 2018-07-31 08:50:58
对于那些来自google的人,因为这个问题是第一个结果(像我一样),如果您缺少codeception.yml设置来决定运行时的memory_limit (不像@Nate),
在codeception.yml中添加以下内容
settings:
memory_limit: 4096Mhttps://stackoverflow.com/questions/27714630
复制相似问题