/** * @dataProvider longestCommonSuffixProvider() */ public function testLongestCommonSuffix($expected, $str, $otherStr, $encoding = null) { $result = S::longestCommonSuffix($str, $otherStr, $encoding); $this->assertInternalType('string', $result); $this->assertEquals($expected, $result); }
public function longestCommonSuffix($string, $otherString) { return Stringy::longestCommonSuffix($string, $otherString); }