how to run one specific data from a data provider in phpunit
Solution 1:
I found out that just adding #n
would just work for numerically indexed data providers.
phpunit --filter ClassName::testName#datasetNumber
Add @name
for associatively indexed named data providers.
phpunit --filter ClassName::testName@datasetName
Or you can use regular expressions. See the documentation for more examples.