public function testInvalidObject() { try { Shippo_Address::retrieve('invalid'); } catch (Shippo_InvalidRequestError $e) { $this->assertEqual(404, $e->getHttpStatus()); } }
public function testInvalidRetrieve() { $address = self::getDefaultAddress(); $retrieve_address = Shippo_Address::retrieve($address->object_id); $this->assertNotEqual($retrieve_address->object_id, 'Invalid Value'); }