From 1cfbbada998296036970808bb9ea5c52d4289df9 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Tue, 8 Nov 2011 11:26:40 +1300 Subject: [PATCH] MINOR: Amended PHPUnit execution to work with PHPUnit 3.6 --- dev/phpunit/PhpUnitWrapper35.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dev/phpunit/PhpUnitWrapper35.php b/dev/phpunit/PhpUnitWrapper35.php index 7cd11481f..73e61c1b3 100644 --- a/dev/phpunit/PhpUnitWrapper35.php +++ b/dev/phpunit/PhpUnitWrapper35.php @@ -26,7 +26,6 @@ class PhpUnitWrapper35 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 PhpUnitWrapper35 extends PhpUnitWrapper { foreach(TestRunner::$coverage_filter_dirs as $dir) { $filter->addDirectoryToBlacklist(BASE_PATH . '/' . $dir); } + + $filter->addFileToBlacklist(__FILE__, 'PHPUNIT'); $coverage->start(self::get_test_name()); }