HtmlTest::testNl2br_deep PHP Method

testNl2br_deep() public method

public testNl2br_deep ( )
    public function testNl2br_deep()
    {
        $origin = "A string\nwith breakline.";
        $expected = "A string<br />\nwith breakline.";
        $this->assertEquals($expected, Html::nl2br_deep($origin));
        $origin = ["Another string\nwith breakline.", "And another\none"];
        $expected = ["Another string<br />\nwith breakline.", "And another<br />\none"];
        $this->assertEquals($expected, Html::nl2br_deep($origin));
    }