bobbingwide / oik

OIK Information Kit
https://www.oik-plugins.com/oik-plugins/oik
GNU General Public License v2.0
2 stars 0 forks source link

Memory exhausted while running PHPUnit tests for oik on s.b/wordpress #209

Open bobbingwide opened 2 years ago

bobbingwide commented 2 years ago

When I PHPUnit tested oik v4.8.1 it worked fine. Re-running the tests today I got.

PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 83395048 bytes)

The memory limit set in wp-config.php was 512M. I upped it to 1024M but still got the problem. The trace output indicate that the memory limit had been reduced from 1024M to 256M But I dont know where this was done.

Workaround

Turn off CLI tracing before running the PHPUnit tests.

bobbingwide commented 2 years ago

Explanation

Problem resolution