public function testIndexOf() { $text = new Text("0123456789"); $this->assertEquals(3, $text->indexOf('3')); }