PHP Класс CommerceGuys\Addressing\Tests\Formatter\PostalLabelFormatterTest

Наследование: extends PHPUnit_Framework_TestCase
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$addressFormatRepository AddressFormatRepositoryInterface The address format repository.
$countryRepository CountryRepositoryInterface The country repository.
$formatter CommerceGuys\Addressing\Formatter\PostalLabelFormatter The formatter.
$subdivisionRepository SubdivisionRepositoryInterface The subdivision repository.

Открытые методы

Метод Описание
setUp ( )
testAddressLeadingPostPrefix ( )
testEmptyAddress ( )
testJapanAddressShippedFromFrance ( )
testMissingOriginCountryCode ( )
testOriginCountryCode ( )
testUnitedStatesAddress ( )

Защищенные методы

Метод Описание
assertFormattedAddress ( array $expectedLines, string $formattedAddress ) Asserts that the formatted address is valid.

Описание методов

assertFormattedAddress() защищенный Метод

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

setUp() публичный Метод

public setUp ( )

testAddressLeadingPostPrefix() публичный Метод

testEmptyAddress() публичный Метод

public testEmptyAddress ( )

testJapanAddressShippedFromFrance() публичный Метод

testMissingOriginCountryCode() публичный Метод

testOriginCountryCode() публичный Метод

testUnitedStatesAddress() публичный Метод

Описание свойств

$addressFormatRepository защищенное свойство

The address format repository.
protected AddressFormatRepositoryInterface $addressFormatRepository
Результат AddressFormatRepositoryInterface

$countryRepository защищенное свойство

The country repository.
protected CountryRepositoryInterface $countryRepository
Результат CountryRepositoryInterface

$formatter защищенное свойство

The formatter.
protected PostalLabelFormatter,CommerceGuys\Addressing\Formatter $formatter
Результат CommerceGuys\Addressing\Formatter\PostalLabelFormatter

$subdivisionRepository защищенное свойство

The subdivision repository.
protected SubdivisionRepositoryInterface $subdivisionRepository
Результат SubdivisionRepositoryInterface