public function testAsNtext() { $value = '123'; $this->assertSame($value, $this->formatter->asNtext($value)); $value = 123; $this->assertSame("{$value}", $this->formatter->asNtext($value)); $value = '<>'; $this->assertSame('<>', $this->formatter->asNtext($value)); $value = "123\n456"; $this->assertSame("123<br />\n456", $this->formatter->asNtext($value)); // null display $this->assertSame($this->formatter->nullDisplay, $this->formatter->asNtext(null)); }