summaryrefslogtreecommitdiffstats
path: root/public_html/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'public_html/index.php')
-rw-r--r--public_html/index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/public_html/index.php b/public_html/index.php
index aa9e12ec4..930737eb1 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -359,11 +359,11 @@ if (getenv("ENVIRONMENT") === "testsuite" && getenv("COLLECT_COVERAGE") == 1) {
if ($testname) {
include APPPATH."../vendor/autoload.php";
$filter = new \SebastianBergmann\CodeCoverage\Filter();
- $filter->addDirectoryToWhitelist(APPPATH);
- $filter->removeDirectoryFromWhitelist(APPPATH."/third_party/");
+ $filter->includeDirectory(APPPATH);
+ $filter->excludeDirectory(APPPATH."/third_party/");
// Force phpdbg for speed
//$driver = new \SebastianBergmann\CodeCoverage\Driver\PHPDBG();
- $driver = null;
+ $driver = (new \SebastianBergmann\CodeCoverage\Driver\Selector)->forLineCoverage($filter);
$coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage($driver, $filter);
$coverage->start($testname);
}