Example::
String.endsWith('Hello, World!', 'World!') == true
/** * @test * @dataProvider endsWithExamples */ public function endsWithWorks($string, $search, $position, $expected) { $helper = new StringHelper(); $result = $helper->endsWith($string, $search, $position); $this->assertSame($expected, $result); }