Example #1
0
 public function testNCompare()
 {
     $this->eq(s::nCompare('abc', 'abcdef', 3), 0);
     $this->lt(s::nCompare('abc', 'abcdef', 5), 0);
     $this->eq(s::nCompare('', '', 5), 0);
     $this->eq(s::nCompare('abc', 'def', 0), 0);
 }
Example #2
0
 public function nCompare($that, $n)
 {
     return s::nCompare($this->value, self::unwrap($that), $n);
 }