PHP 클래스 CommerceGuys\Addressing\Tests\Formatter\PostalLabelFormatterTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: commerceguys/addressing

보호된 프로퍼티들

프로퍼티 타입 설명
$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