I am trying to extend the PHPUnit in Laravel, but I’ve faced a problem - application instance is not loaded. I'll do my best to explain my problem.
I want to implement TestListener interface and TestListenerDefaultImplementation trait to use PHPUnit Listener feature. But also I need to use my models in this listener.
As you can guess I cannot do this because Laravel’s CreateApplication trait is used only in a pair with its BasicTest. Thus the listener does not know anything about the application instance. How can I manage to do this with listeners? My phpunit.xml file: https://gist.github.com/andrewgorpenko/1a7d472ab4747f081c7da247261e29d1
Aucun commentaire:
Enregistrer un commentaire