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