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.