summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers')
-rw-r--r--application/controllers/Tools.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/controllers/Tools.php b/application/controllers/Tools.php
index 15f35cc9e..040f0c711 100644
--- a/application/controllers/Tools.php
+++ b/application/controllers/Tools.php
@@ -105,7 +105,10 @@ class Tools extends MY_Controller {
function generate_coverage_report()
{
include APPPATH."../vendor/autoload.php";
- $coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage();
+ $filter = new \SebastianBergmann\CodeCoverage\Filter;
+ $coverage = new \SebastianBergmann\CodeCoverage\CodeCoverage(
+ (new \SebastianBergmann\CodeCoverage\Driver\Selector)->forLineCoverage($filter),
+ $filter);
foreach (glob(FCPATH."/test-coverage-data/*") as $file) {
$coverage->merge(unserialize(file_get_contents($file)));
}