diff --git a/dev/phpunit/PhpUnitWrapper_3_5.php b/dev/phpunit/PhpUnitWrapper_3_5.php index 67637df47..f6376965c 100644 --- a/dev/phpunit/PhpUnitWrapper_3_5.php +++ b/dev/phpunit/PhpUnitWrapper_3_5.php @@ -26,7 +26,6 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper { require_once 'PHPUnit/Autoload.php'; require_once 'PHP/CodeCoverage/Filter.php'; - PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT'); } /** @@ -44,6 +43,8 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper { foreach(TestRunner::$coverage_filter_dirs as $dir) { $filter->addDirectoryToBlacklist(BASE_PATH . '/' . $dir); } + + $filter->addFileToBlacklist(__FILE__, 'PHPUNIT'); $coverage->start(self::get_test_name()); }