sebastianbergmann/php-code-coverage — Issue #82: Code Coverage filter in PHP code
Author: mdevils
Created: 2011-11-30 13:09:29+00:00
State: open

Hello, I used to define code coverage filter in PHP like this:

PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist('.');
PHP_CodeCoverage_Filter::getInstance()->removeDirectoryFromBlacklist('config');
PHP_CodeCoverage_Filter::getInstance()->removeDirectoryFromBlacklist('engine/test/unit/config');

But after upgrade to the latest PHPUnit I realized there are no more PHP_CodeCoverage_Filter::getInstance() method. What is the replacement? Defining filters in xml config doesn't match my requirements as I have multi-moduled architecture with specific ignore for each module.