Level 7
Has the same problem. And I see that this bug still isn't fixed.
Do you have any ideas to find solution for testing with the support of Validator CLass?
https://github.com/laravel/lumen-framework/issues/357
It seems that the validation service provider is a bit broken when it comes to phpunit.
Everything works fine with manual (browser/postman) testing, but when i run my phpunit, the validation class is rebuilt/constructed every time it's called.
The custom validation is registered upon boot, but when i run the Validation method / check in my Controller, the Validation instance is re-created and thus, all custom Validations are wiped.
Any fix / Solution / Suggestions are welcome
Please or to participate in this conversation.