Example #1
0
 /**
  * @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);
 }
Example #2
0
 public function insert($string, $subString, $position)
 {
     return Stringy::insert($string, $subString, $position);
 }