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