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