コード例 #1
0
 /**
  * @dataProvider longestCommonSubstringProvider()
  */
 public function testLongestCommonSubstring($expected, $str, $otherStr, $encoding = null)
 {
     $result = S::longestCommonSubstring($str, $otherStr, $encoding);
     $this->assertInternalType('string', $result);
     $this->assertEquals($expected, $result);
 }
コード例 #2
0
ファイル: StringyLoader.php プロジェクト: lablog/stringy
 public function longestCommonSubstring($string, $otherString)
 {
     return Stringy::longestCommonSubstring($string, $otherString);
 }