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
In this case, the regex is matched against the following string:
DataTest::testAdd with data set #0 DataTest::testAdd with data set #1 ...
So naturally your regex testAdd$ won't work.
testAdd$