Closed Man7asP closed 3 years ago
@mn7zDev thanks for using this library but I fail to understand why this error is related to the library. If you have issue with memory usage and PHPUnit maybe you need to look into your codebase to see if you can fix it ?
Well, I'm not sure if it code problem, everything was alright before I installed this library. It's a simple Laravel router without any big logic. The project has only 300tests and this library is used only for Laravel Rule validator. TldSuffix list is cached for 7days. And this problem appears not only in one project. And as I mentioned this happens only when PHPUnit clover.xml is generating.
@mn7zDev again I understand your questionning but I fail to see the correlation with this library. Maybe something is wrong with your TlsSuffix list implementation that I am not aware of. If you are using Laravel I know there's a laravel package for this library https://github.com/kevindierkx/laravel-domain-parser. it might resolve your issue
@mn7zDev I will close this issue and will open it again if more information are brought to my attention to further investigate the matter.
Issue summary
PHPUnit tests start failing after I install this dependency. In two projects where I decided to use this dependency, I'm getting "Fatal: Allowed memory size of * bytes exhausted." Test only failing with PHPUnit coverage. Any ideas what's wrong?
PHPUnit CLI command:
phpdbg -qrr ./vendor/bin/phpunit tests
System informations
Standalone code, or other way to reproduce the problem
I'm using this library to validate if the domain is valid
PHPUnit xml
Expected result
PHPUnit tests should pass without memory limit issues.
Actual result