コード例 #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);
 }
コード例 #2
0
ファイル: StringyLoader.php プロジェクト: lablog/stringy
 public function insert($string, $subString, $position)
 {
     return Stringy::insert($string, $subString, $position);
 }