Skip to content

Commit f31dff0

Browse files
committed
Fix text report - fixes #12
1 parent 4ca5990 commit f31dff0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
- Fixed a bug where a suffix when whitelisting files would default to `src`.
1212
This would make reports not generate in case no `suffix` was defined in
1313
configuration.
14+
- Fixed Text report printing (issue #12)
1415
- `phpunit/php-code-coverage` dependency version requirement has been updated
1516
from `~4.0|~5.0` to `~5.0` as we do not support version `4.0` anymore.
1617
- Updated README to list all configuration options

src/Service/ReportService.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public function generateReport(CodeCoverage $coverage)
5252
$options = $this->config['report']['options'];
5353

5454
$report = $this->factory->create($format, $options);
55-
$report->process($coverage);
55+
$output = $report->process($coverage);
56+
57+
if ($format === 'text') {
58+
print_r($output);
59+
}
5660
}
5761
}

0 commit comments

Comments
 (0)