Permalink
Browse files

Remove the leading blank line from the TextRenderer

  • Loading branch information...
nicwortel committed Apr 28, 2016
1 parent 2b9c241 commit ca59154f70695a5fe3f07220c08bbcb521f9c258
@@ -65,7 +65,6 @@ class TextRenderer extends AbstractRenderer
public function renderReport(Report $report)
{
$writer = $this->getWriter();
$writer->write(PHP_EOL);
foreach ($report->getRuleViolations() as $violation) {
$writer->write($violation->getFileName());
@@ -91,7 +91,6 @@ public function testRendererCreatesExpectedNumberOfTextEntries()
$renderer->end();
$this->assertEquals(
PHP_EOL .
"/bar.php:1\tTest description" . PHP_EOL .
"/foo.php:2\tTest description" . PHP_EOL .
"/foo.php:3\tTest description" . PHP_EOL,
@@ -131,7 +130,6 @@ public function testRendererAddsProcessingErrorsToTextReport()
$renderer->end();
$this->assertEquals(
PHP_EOL .
"/tmp/foo.php\t-\tFailed for file \"/tmp/foo.php\"." . PHP_EOL .
"/tmp/bar.php\t-\tFailed for file \"/tmp/bar.php\"." . PHP_EOL .
"/tmp/baz.php\t-\tFailed for file \"/tmp/baz.php\"." . PHP_EOL,

0 comments on commit ca59154

Please sign in to comment.