Example #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);
 }
Example #2
0
 public function at($string, $position)
 {
     return Stringy::at($string, $position);
 }