Permalink
Browse files

MINOR: Amended PHPUnit execution to work with PHPUnit 3.6

  • Loading branch information...
1 parent cd6ad64 commit f1480c20bf64f7c387c0d0a9fa7875ff67ca1533 @sminnee sminnee committed Nov 7, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 dev/phpunit/PhpUnitWrapper_3_5.php
@@ -26,7 +26,6 @@ public function init() {
require_once 'PHPUnit/Autoload.php';
require_once 'PHP/CodeCoverage/Filter.php';
- PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
}
/**
@@ -44,6 +43,8 @@ protected function beforeRunTests() {
foreach(TestRunner::$coverage_filter_dirs as $dir) {
$filter->addDirectoryToBlacklist(BASE_PATH . '/' . $dir);
}
+
+ $filter->addFileToBlacklist(__FILE__, 'PHPUNIT');
$coverage->start(self::get_test_name());
}

0 comments on commit f1480c2

Please sign in to comment.