I am building an application with laravel,I have made several service class for my application in the App\Services directory.Now I want to test the service class, I made a test file in which I want instantiate the service class,but the service class has a constructor which has serveral parameters, I must give the parameters when I instantiate it.I'm wondering if there is a n easy way for me to test the service class. Is it possible to initantiate without give those parameters? Thank you!
Aucun commentaire:
Enregistrer un commentaire