示例#1
0
 /**
  * Compare two Postcode and tells whether they can be considered equal
  *
  * @todo Replace toNative with toString
  * @todo strcmp — Binary safe string comparison
  *
  * @param  Postcode $object
  * @return bool
  */
 public function compareTo(Postcode $other)
 {
     return strcmp($this->toNative(), $other->toNative()) !== 0;
 }
示例#2
0
 public function testToNative()
 {
     self::assertEquals($this->value, $this->postcode->toNative());
 }