Skip to content

Commit

Permalink
Fix dependencies and versioning (#1480)
Browse files Browse the repository at this point in the history
* fix version

* coverage fix

* fix coverage script
  • Loading branch information
DarkSide666 authored Oct 13, 2020
1 parent 66aeed5 commit f3cefad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"homepage": "https://xsystems.io/"
}
],
"version": "2.2.1",
"minimum-stability": "dev",
"prefer-stable": true,
"config": {
Expand Down
7 changes: 5 additions & 2 deletions tools/coverage.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// log coverage for test-suite

use SebastianBergmann\CodeCoverage\CodeCoverage;
use SebastianBergmann\CodeCoverage\Driver\Driver;
use SebastianBergmann\CodeCoverage\Filter;
use SebastianBergmann\CodeCoverage\Report;

final class CoverageUtil
Expand All @@ -23,8 +25,9 @@ public static function start()
throw new \Error('Coverage already started');
}

self::$coverage = new CodeCoverage();
self::$coverage->filter()->addDirectoryToWhitelist(__DIR__ . '/../src');
$filter = new Filter();
$filter->includeDirectory(__DIR__ . '/../src');
self::$coverage = new CodeCoverage(Driver::forLineCoverage($filter), $filter);
self::$coverage->start($_SERVER['SCRIPT_NAME']);
}

Expand Down

0 comments on commit f3cefad

Please sign in to comment.