/** * @dataProvider insertProvider() */ public function testInsert($expected, $str, $substring, $index, $encoding = null) { $result = S::insert($str, $substring, $index, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function insert($string, $subString, $position) { return Stringy::insert($string, $subString, $position); }