示例#1
0
 public function testTrim()
 {
     $text = new Text("\n foo\t\r\n");
     $this->assertEquals('foo', $text->trim());
     $text = new Text('/foo/');
     $this->assertEquals('foo', $text->trim('/'));
 }