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