Phalcon\Test\Unit\Logger\Formatter\LineTest::testLoggerFormatterLineNewLines PHP Method

testLoggerFormatterLineNewLines() public method

Tests adding newline at end of message
Since: 2016-01-28
Author: Serghei Iakovlev ([email protected])
    public function testLoggerFormatterLineNewLines()
    {
        $this->specify("Line formatter does not add new line at end of message", function () {
            $formatter = new Line();
            expect($formatter->format('msg', Logger::INFO, 0))->equals('[Thu, 01 Jan 70 00:00:00 +0000][INFO] msg' . PHP_EOL);
        });
    }