Skip to content

Commit 16152ba

Browse files
committed
use blacklist-classnames from PHP_CodeCoverage_Filter::
1 parent 566b51d commit 16152ba

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

src/Util/Blacklist.php

100644100755
Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,7 @@ private function initialize()
8787
if (self::$directories === null) {
8888
self::$directories = array();
8989

90-
$classes = array(
91-
'File_Iterator' => 1,
92-
'PHP_CodeCoverage' => 1,
93-
'PHP_Invoker' => 1,
94-
'PHP_Timer' => 1,
95-
'PHP_Token' => 1,
96-
'PHPUnit_Framework_TestCase' => 2,
97-
'PHPUnit_Extensions_Database_TestCase' => 2,
98-
'PHPUnit_Framework_MockObject_Generator' => 2,
99-
'PHPUnit_Extensions_SeleniumTestCase' => 2,
100-
'PHPUnit_Extensions_Story_TestCase' => 2,
101-
'Text_Template' => 1,
102-
'SebastianBergmann\Diff' => 1,
103-
'SebastianBergmann\Environment\Runtime' => 1,
104-
'SebastianBergmann\Exporter\Exporter' => 1,
105-
'SebastianBergmann\Version' => 1,
106-
'Composer\Autoload\ClassLoader' => 1
107-
);
108-
109-
foreach ($classes as $className => $parent) {
90+
foreach (PHP_CodeCoverage_Filter::$blacklistClassNames as $className => $parent) {
11091
if (!class_exists($className)) {
11192
continue;
11293
}

0 commit comments

Comments
 (0)