/** * @dataProvider firstProvider() */ public function testFirst($expected, $str, $n, $encoding = null) { $result = S::first($str, $n, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function first($string, $count) { return Stringy::first($string, $count); }