Quick and easy tip, sometimes a test could take too much time/memory, you can set your local environmentmemory_limit
, but take in mind that you should repeat this process on every environment (local, staging, production) and all development team environments should add this configuration, not best solution right?
Fortunately.PHPUnit provides a simple solution for this cases you can set amemory_limit
value that would instruct the memory limit only when the app runs tests.
In yourphpunit.xml
file add this configuration:
<php> ...<ininame="memory_limit"value="512M"/></php>
Top comments(0)
Subscribe
For further actions, you may consider blocking this person and/orreporting abuse