예제 #1
0
 public function testRegionCompareIgnoreCase()
 {
     $str1 = new Str("ASDFqwerty");
     $str2 = new Str("QWERTYasdf");
     $this->assertLessThanOrEqual(-1, $str1->regionCompareIgnoreCase(0, $str2, 0, 4));
     $this->assertEquals($str1->regionCompareIgnoreCase(0, $str2, 6, 4), 0);
     $this->assertGreaterThanOrEqual(1, $str2->regionCompareIgnoreCase(0, $str1, 0, 4));
 }