/** * @dataProvider lastProvider() */ public function testLast($expected, $str, $n, $encoding = null) { $result = S::last($str, $n, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function last($string, $position) { return Stringy::last($string, $position); }