Skip to content

Commit

Permalink
Added trim to fix comparison inconsistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Kaczocha committed Oct 1, 2014
1 parent 93e508e commit 948b08a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/unit/lib/formatters/ErrorLogFormatterTest.php
Expand Up @@ -92,9 +92,8 @@ public function testFormatValidSettings( )

$record->setDate( $date );

$expected = '[Wed Oct 01 23:14:55 EST] [ERROR] [-] This is the error message';
$expected .= PHP_EOL;
$expected = '[Wed Oct 01 23:14:55 EST] [ERROR] [-] This is the error message';

$this->assertEquals( $expected, $this->formatter->format( $record ) );
$this->assertEquals( $expected, trim( $this->formatter->format( $record ) ) );
}
}

0 comments on commit 948b08a

Please sign in to comment.