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