Skip to content

Commit

Permalink
Hopefully fix --text option
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed May 26, 2016
1 parent f315f3b commit d1cac84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/BaseCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ protected function handleReports(CodeCoverage $coverage, InputInterface $input,
}

if ($input->getOption('text')) {
$writer = new TextReport;
$writer->process($coverage, $input->getOption('text'));
$report = new TextReport;

$output->write($report->process($coverage));
}

if ($input->getOption('xml')) {
Expand Down
4 changes: 2 additions & 2 deletions src/ExecuteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ protected function configure()
->addOption(
'text',
null,
InputOption::VALUE_REQUIRED,
'Generate code coverage report in text format'
InputOption::VALUE_NONE,
'Write code coverage report in text format to STDOUT'
)
->addOption(
'xml',
Expand Down

0 comments on commit d1cac84

Please sign in to comment.