I\'ve got a problem when using command line to run tests: if I run phpunit like this:
phpunit -–no-configuration -–filter testAdd DataTest DataProviderTest.php
By using a data provider with named datasets it's simpler now:
public function provideData() { yield "dataset name 1" => [ $expected = 0, $val1 = 1, $val2 = 2 ]; yield "dataset name 2" => [...]; }
$ phpunit --filter "dataset name 2"