I have a php file in the root of the project. It consists of about 112 (1600 lines of code) helper functions.
If I do something like this in my composer.json
and run phpunit:
"autoload": {
"psr-4": {
"My\\Namespace\\": "src"
},
"files": [
"helpers.php"
]
},
Then I get segmentation fault ./vendor/bin/phpunit
Without including this file via composer my unit tests work fine and take no more that 4mb
What do I do wrong and how can I test functions inside this file?