luyatests\core\tag\TagMarkdownParserTest::testNewline PHP Method

testNewline() public method

public testNewline ( )
    public function testNewline()
    {
        $parser = new TagMarkdownParser();
        $this->assertEquals('<p>test  test</p>', $this->rnl($parser->parse('test  test')));
        $this->assertEquals('<p>test<br />test</p>', $this->rnl($parser->parse('test' . PHP_EOL . 'test')));
        $this->assertEquals('<p>test<br />test</p>', $this->rnl($parser->parse('test<br />test')));
    }