Allowed memory error in tests on Heroku CI

PHPUnit 6.5.14 by Sebastian Bergmann and contributors.
Testing Project Test Suite
..................................................PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 81920 bytes) in /app/var/cache/test/ContainerMHT53RY/removed-ids.php on line 4
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 81920 bytes) in /app/vendor/symfony/debug/DebugClassLoader.php on line 163
Remaining direct deprecation notices (6)
Remaining indirect deprecation notices (20)
Other deprecation notices (409)
-----> test command `bin/phpunit` failed with exit status 255

fpm_custom.conf

php_value[memory_limit] = 256M

Procfile:

web: $(composer config bin-dir)/heroku-php-nginx -F fpm_custom.conf -C nginx_host.conf public/

Anyone have idea how to set allowed memory for tests in heroku? My solution does not work.

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *