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