sebastianbergmann/phpunit — Issue #464: all of sudden --filter filters data providers, not only tests
Author: dmitri--
Created: 2012-01-21 11:17:22+00:00
State: open

if I supply --filter "NamespaceName\ClassNameTest::testMethodName" in the command line and testMethodName() method requires a provider, phpUnit won't run it until I add provider's name to the filter list too.

According to the manual http://www.phpunit.de/manual/current/en/textui.html#textui.clioptions
filter is applied on test names only:

--filter
Only runs tests whose name matches the given pattern. The pattern can be either the name of a single test or a regular expression that matches multiple test names