PHP Class CommerceGuys\Zone\Tests\Model\ZoneMemberCountryTest

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: commerceguys/zone

Protected Properties

Property Type Description
$zoneMember ZoneMemberZone

Public Methods

Method Description
addressProvider ( ) Provides addresses and the expected match results.
setUp ( )
testAdministrativeArea ( )
testCountryCode ( )
testDependentLocality ( )
testExcludedPostalCodes ( )
testIncludedPostalCodes ( )
testLocality ( )
testMatch ( $address, $expectedResult )

Protected Methods

Method Description
getAddress ( string $countryCode = null, string $administrativeArea = null, string $locality = null, string $dependentLocality = null, string $postalCode = null ) : Address Returns a mock address.

Method Details

addressProvider() public method

Provides addresses and the expected match results.
public addressProvider ( )

getAddress() protected method

Returns a mock address.
protected getAddress ( string $countryCode = null, string $administrativeArea = null, string $locality = null, string $dependentLocality = null, string $postalCode = null ) : Address
$countryCode string The country code.
$administrativeArea string The administrative area id.
$locality string The locality id.
$dependentLocality string The dependent locality id.
$postalCode string The postal code.
return CommerceGuys\Addressing\Address

setUp() public method

public setUp ( )

testAdministrativeArea() public method

testCountryCode() public method

public testCountryCode ( )

testDependentLocality() public method

testExcludedPostalCodes() public method

testIncludedPostalCodes() public method

testLocality() public method

public testLocality ( )

testMatch() public method

public testMatch ( $address, $expectedResult )

Property Details

$zoneMember protected property

protected ZoneMemberZone $zoneMember
return ZoneMemberZone