how to test specific test class using phpunit in laravel

After trying several ways, I found out that I don’t need to include the folder to test the specific test class. This works for me it runs all the test on the class:

phpunit --filter ApplicationVersionFormatTest

I think it’s because my ApplicationVersionFormatTest extend The TestCase and return application instance which serves as the “glue” for all the components of Laravel.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)