Ejemplo n.º 1
0
 public function testLocaleCompare()
 {
     $this->eq(s::localeCompare('', ''), 0);
     $this->eq(s::localeCompare('a', 'a'), 0);
     $this->lt(s::localeCompare('a', 'b'), 0);
 }
Ejemplo n.º 2
0
 public function localeCompare($that)
 {
     return s::localeCompare($this->value, self::unwrap($that));
 }