예제 #1
0
파일: TextTest.php 프로젝트: puwenhan/Text
 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);
 }