PHP Class CommerceGuys\Addressing\Tests\Formatter\DefaultFormatterTest

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

Protected Properties

Свойство Type Description
$addressFormatRepository AddressFormatRepositoryInterface The address format repository.
$countryRepository CountryRepositoryInterface The country repository.
$formatter CommerceGuys\Addressing\Formatter\DefaultFormatter The formatter.
$subdivisionRepository SubdivisionRepositoryInterface The subdivision repository.

Méthodes publiques

Méthode Description
setUp ( )
testAndorraAddress ( )
testConstructor ( )
testElSalvadorAddress ( )
testInvalidOption ( )
testLocale ( )
testOptions ( )
testTaiwanAddress ( )
testUnitedStatesIncompleteAddress ( )

Méthodes protégées

Méthode Description
assertFormattedAddress ( array $expectedLines, string $formattedAddress ) Asserts that the formatted address is valid.

Method Details

assertFormattedAddress() protected méthode

Asserts that the formatted address is valid.
protected assertFormattedAddress ( array $expectedLines, string $formattedAddress )
$expectedLines array
$formattedAddress string

setUp() public méthode

public setUp ( )

testAndorraAddress() public méthode

public testAndorraAddress ( )

testConstructor() public méthode

public testConstructor ( )

testElSalvadorAddress() public méthode

testInvalidOption() public méthode

public testInvalidOption ( )

testLocale() public méthode

public testLocale ( )

testOptions() public méthode

public testOptions ( )

testTaiwanAddress() public méthode

public testTaiwanAddress ( )

testUnitedStatesIncompleteAddress() public méthode

Property Details

$addressFormatRepository protected_oe property

The address format repository.
protected AddressFormatRepositoryInterface $addressFormatRepository
Résultat AddressFormatRepositoryInterface

$countryRepository protected_oe property

The country repository.
protected CountryRepositoryInterface $countryRepository
Résultat CountryRepositoryInterface

$formatter protected_oe property

The formatter.
protected DefaultFormatter,CommerceGuys\Addressing\Formatter $formatter
Résultat CommerceGuys\Addressing\Formatter\DefaultFormatter

$subdivisionRepository protected_oe property

The subdivision repository.
protected SubdivisionRepositoryInterface $subdivisionRepository
Résultat SubdivisionRepositoryInterface