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
The regex to handle tests with or without data sets is
phpunit --filter "/::( with data set .*)?$/"
For example
phpunit --filter "/::testAdd( with data set .*)?$/" DataTest DataProviderTest.php
Since a test method won't have a space in the name unless it has a data set, you could really shrink this to
phpunit --filter "/::testAdd( .*)?$/" DataTest DataProviderTest.php