Esempio n. 1
0
 /**
  * @dataProvider atProvider()
  */
 public function testAt($expected, $str, $index, $encoding = null)
 {
     $result = S::at($str, $index, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
Esempio n. 2
0
 public function at($string, $position)
 {
     return Stringy::at($string, $position);
 }