Run one file or map in phpunit
You are doing everything correctly.
1)
First way to add folder. My correct way was:
phpunit tests/EWalletTest
I had same errors when I forget to start from "tests" folder
phpunit EWalletTest
I got
Cannot open file "EWalletTest.php".
2)
Filter is another option. read here example:
phpunit --filter EWallet
Only runs tests whose name matches the given regular expression pattern.
Meaning that you will have executed files EWalletTest
and EWalletFooTest
and test cases from other file with names like `test_EWallet_with_Australian_dollar.
Use filter option
phpunit --filter=EWalletTest