Might be an easy question but I can't find it so far. I have written a couple of unit tests but I am wondering if there is a way to view which tests have run ok by their name in the commandline when you run phpunit. I would like to know which tests I am running exactly without looking at my test files constantly since I might be adding a whole bunch of them.
When you run phpunit it checks all files inside your tests folder that end with *Test.php and runs them all.
If you would like to limit testing to a single file, you could do phpunit tests/path/MyTest.php (tests\path\MyTest.php on Windows) and it will run all tests in that specific file only
If you would like to run a specific test (not a file), you can run phpunit --filter test_method_name
I think I still like this one the best since it resembles the regular test the most, just found this between the other commands you guys gave me. Thanks for helping out!