sebastianbergmann/phpunit — pull request #1190 by hpbuniat (2014-03-17 13:20:13+00:00)
Title: Get hook-methods only if a testcase will run

This is a follow-up to #1189

As $hookMethods is only used, if this a testcase will run they should only be gathered in this case.

Otherwise this could lead to issues with autoloaders (e.g. Zend_Loader), because $this->name looks like UnitTest::testMethod when using @dataProvider