When using data providers in your phpunit tests to run the same test for N different sets of input data it is sometimes helpful if you can run the test for just a specific data set from the command line.
Since I can never remember the syntax when I need it I decided to write it down (mostly for myself). Next up would be to create an alias or a helper script. We shall see.
So lets say I want to run the test method testTheThing
with dataset #12.
1
|
|
Details:
1 2 3 4 |
|