PHP Class CommerceGuys\Zone\Tests\Model\ZoneMemberCountryTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: commerceguys/zone

Protected Properties

Свойство Type Description
$zoneMember ZoneMemberZone

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

getAddress() protected méthode

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.
Résultat CommerceGuys\Addressing\Address

setUp() public méthode

public setUp ( )

testAdministrativeArea() public méthode

testCountryCode() public méthode

public testCountryCode ( )

testDependentLocality() public méthode

testExcludedPostalCodes() public méthode

testIncludedPostalCodes() public méthode

testLocality() public méthode

public testLocality ( )

testMatch() public méthode

public testMatch ( $address, $expectedResult )

Property Details

$zoneMember protected_oe property

protected ZoneMemberZone $zoneMember
Résultat ZoneMemberZone