assertEquals( RestUtils::INVALID_SHORTCODE_ERROR, RestUtils::getRestErrorCodeFromException(new InvalidShortCodeException()) ); $this->assertEquals( RestUtils::INVALID_URL_ERROR, RestUtils::getRestErrorCodeFromException(new InvalidUrlException()) ); $this->assertEquals( RestUtils::INVALID_ARGUMENT_ERROR, RestUtils::getRestErrorCodeFromException(new InvalidArgumentException()) ); $this->assertEquals( RestUtils::INVALID_CREDENTIALS_ERROR, RestUtils::getRestErrorCodeFromException(new AuthenticationException()) ); $this->assertEquals( RestUtils::UNKNOWN_ERROR, RestUtils::getRestErrorCodeFromException(new WrongIpException()) ); } }