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('/')); }