public function testNl2br() { $s = new StringObject("new \n line"); $s->nl2br(); $this->assertSame('new <br /> line', $s->val()); }