minFraud PHP API v1.0.0
  • Namespace
  • Class

Namespaces

  • GeoIp2
    • Database
    • Exception
    • Model
    • Record
    • Test
      • Database
      • Model
      • WebService
    • WebService
  • MaxMind
    • MinFraud
      • Model
  • PHP

Classes

  • ClientTest

Class ClientTest

PHPUnit_Framework_TestCase
Extended by GeoIp2\Test\WebService\ClientTest
Namespace: GeoIp2\Test\WebService
Located at tests/GeoIp2/Test/WebService/ClientTest.php

Methods summary

public
# testCountry( )
public
# testInsights( )
public
# testCity( )
public
# testMe( )
public
# testNoBodyException( )

Expectedexception

GeoIp2\Exception\GeoIp2Exception

Expectedexceptionmessage

Received a 200 response for GeoIP2 Country but did not receive a HTTP body.
public
# testBadBodyException( )

Expectedexception

GeoIp2\Exception\GeoIp2Exception

Expectedexceptionmessage

Received a 200 response for GeoIP2 Country but could not decode the response as JSON:
public
# testInvalidIPException( )

Expectedexception

GeoIp2\Exception\InvalidRequestException

Expectedexceptioncode

400

Expectedexceptionmessage

The value "1.2.3" is not a valid ip address
public
# testNoErrorBodyIPException( )

Expectedexception

GeoIp2\Exception\HttpException

Expectedexceptioncode

400

Expectedexceptionmessage

with no body
public
# testWeirdErrorBodyIPException( )

Expectedexception

GeoIp2\Exception\GeoIp2Exception

Expectedexceptionmessage

Error response contains JSON but it does not specify code or error keys: {"weird":42}
public
# testInvalidErrorBodyIPException( )

Expectedexception

GeoIp2\Exception\HttpException

Expectedexceptioncode

400

Expectedexceptionmessage

Received a 400 error for GeoIP2 Country but could not decode the response as JSON: Syntax error. Body: { invalid: }
public
# test500PException( )

Expectedexception

GeoIp2\Exception\HttpException

Expectedexceptioncode

500

Expectedexceptionmessage

Received a server error (500)
public
# test3xxException( )

Expectedexception

GeoIp2\Exception\HttpException

Expectedexceptioncode

300

Expectedexceptionmessage

Received an unexpected HTTP status (300) for GeoIP2 Country
public
# test406Exception( )

Expectedexception

GeoIp2\Exception\HttpException

Expectedexceptioncode

406

Expectedexceptionmessage

Received a 406 error for GeoIP2 Country with the following body: Cannot satisfy your Accept-Charset requirements
public
# testAddressNotFoundException( )

Expectedexception

GeoIp2\Exception\AddressNotFoundException

Expectedexceptionmessage

The address "1.2.3.13" is not in our database.
public
# testAddressReservedException( )

Expectedexception

GeoIp2\Exception\AddressNotFoundException

Expectedexceptionmessage

The address "1.2.3.14" is a private address.
public
# testAuthorizationException( )

Expectedexception

GeoIp2\Exception\AuthenticationException

Expectedexceptionmessage

A user ID and license key are required to use this service
public
# testMissingLicenseKeyException( )

Expectedexception

GeoIp2\Exception\AuthenticationException

Expectedexceptionmessage

A license key is required to use this service
public
# testMissingUserIdException( )

Expectedexception

GeoIp2\Exception\AuthenticationException

Expectedexceptionmessage

A user ID is required to use this service
public
# testOutOfQueriesException( )

Expectedexception

GeoIp2\Exception\OutOfQueriesException

Expectedexceptionmessage

The license key you have provided is out of queries.
public
# testParams( )
minFraud PHP API v1.0.0 API documentation generated by ApiGen