Skip to content

Commit

Permalink
testWriteWillPrintCodeCoverage
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotchance committed Dec 23, 2015
1 parent 2e44cf2 commit 6619c6d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Concise/Console/ResultPrinter/ResultPrinterProxy.php
Expand Up @@ -132,7 +132,10 @@ protected function printFooter(PHPUnit_Framework_TestResult $result)

public function write($buffer)
{
return null;
if (strpos($buffer, 'Code Coverage Report') === false) {
return null;
}
echo $buffer;
}

public function printResult(PHPUnit_Framework_TestResult $result)
Expand Down
Expand Up @@ -104,4 +104,10 @@ public function testPrintResultReturnsNull()
)->expose('printResult')->get();
$this->assert($proxy->printResult($result))->isNull;
}

public function testWriteWillPrintCodeCoverage()
{
$this->expectOutputString('foo Code Coverage Report bar');
$this->proxy->write('foo Code Coverage Report bar');
}
}

0 comments on commit 6619c6d

Please sign in to comment.