public function testRegionMatches() { $str1 = new Str("asdfqwerty"); $str2 = new Str("qwertyasdf"); $this->assertTrue($str1->regionMatches(0, $str2, 6, 4)); $this->assertTrue($str1->regionMatches(4, $str2, 0, 6)); }