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

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