Skip to content

Commit

Permalink
MINOR: Amended PHPUnit execution to work with PHPUnit 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minnee authored and chillu committed Mar 19, 2013
1 parent bfbc7bc commit 1cfbbad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/phpunit/PhpUnitWrapper35.php
Expand Up @@ -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');
}

/**
Expand All @@ -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());
}
Expand Down

0 comments on commit 1cfbbad

Please sign in to comment.