public function testIndent() { $text = new Text("This is line1\n" . "This is line2\r\n" . "This is line3\n"); $text->indent(); $expected = " This is line1\n" . " This is line2\r\n" . " This is line3\n"; $this->assertEquals($expected, $text); }