endsWith() публичный Метод

Example:: String.endsWith('Hello, World!', 'World!') == true
public endsWith ( string $string, string $search, integer $position = null ) : boolean
$string string The string
$search string A string to search
$position integer Optional position for limiting the string
Результат boolean TRUE if the string ends with the given search
 /**
  * @test
  * @dataProvider endsWithExamples
  */
 public function endsWithWorks($string, $search, $position, $expected)
 {
     $helper = new StringHelper();
     $result = $helper->endsWith($string, $search, $position);
     $this->assertSame($expected, $result);
 }