mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR: Amended PHPUnit execution to work with PHPUnit 3.6
This commit is contained in:
parent
cd6ad64b53
commit
f1480c20bf
@ -26,7 +26,6 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper {
|
|||||||
require_once 'PHPUnit/Autoload.php';
|
require_once 'PHPUnit/Autoload.php';
|
||||||
|
|
||||||
require_once 'PHP/CodeCoverage/Filter.php';
|
require_once 'PHP/CodeCoverage/Filter.php';
|
||||||
PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -45,6 +44,8 @@ class PhpUnitWrapper_3_5 extends PhpUnitWrapper {
|
|||||||
$filter->addDirectoryToBlacklist(BASE_PATH . '/' . $dir);
|
$filter->addDirectoryToBlacklist(BASE_PATH . '/' . $dir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$filter->addFileToBlacklist(__FILE__, 'PHPUNIT');
|
||||||
|
|
||||||
$coverage->start(self::get_test_name());
|
$coverage->start(self::get_test_name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user