Пример #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
 public function longestCommonSuffix($string, $otherString)
 {
     return Stringy::longestCommonSuffix($string, $otherString);
 }