public function testIndex() { $t = new StringMethods(); $this->assertSame(0, $t->getIndex('test', 't')); $this->assertSame(3, $t->getIndexWithPosition('test', 't', 1)); }