/** * 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; }
public function testToNative() { self::assertEquals($this->value, $this->postcode->toNative()); }