PHP 클래스 CommerceGuys\Tax\Tests\Resolver\EuTaxTypeResolverTest

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

보호된 프로퍼티들

프로퍼티 타입 설명
$taxTypes array Known tax types.
$zones array Note: The real fr_vat and de_vat zones are more complex, France excludes Corsica, Germany excludes Heligoland and Bussingen, but includes 4 Austrian postal codes. Those details were irrelevant for this test.

공개 메소드들

메소드 설명
dataProvider ( ) Provides data for the resolver test.
testConstructor ( )
testResolver ( $taxable, $context, $expected, $resolver )

보호된 메소드들

메소드 설명
getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) : Context Returns a mock context based on the provided data.

메소드 상세

dataProvider() 공개 메소드

Provides data for the resolver test.
public dataProvider ( )

getContext() 보호된 메소드

Returns a mock context based on the provided data.
protected getContext ( CommerceGuys\Addressing\AddressInterface $customerAddress, CommerceGuys\Addressing\AddressInterface $storeAddress, string $customerTaxNumber = '', array $storeRegistrations = [], DateTime $date = null ) : Context
$customerAddress CommerceGuys\Addressing\AddressInterface The customer address.
$storeAddress CommerceGuys\Addressing\AddressInterface The store address.
$customerTaxNumber string The customer tax number.
$storeRegistrations array The store registrations.
$date DateTime The date.
리턴 CommerceGuys\Tax\Resolver\Context

testConstructor() 공개 메소드

public testConstructor ( )

testResolver() 공개 메소드

public testResolver ( $taxable, $context, $expected, $resolver )

프로퍼티 상세

$taxTypes 보호되어 있는 프로퍼티

Known tax types.
protected array $taxTypes
리턴 array

$zones 보호되어 있는 프로퍼티

Note: The real fr_vat and de_vat zones are more complex, France excludes Corsica, Germany excludes Heligoland and Bussingen, but includes 4 Austrian postal codes. Those details were irrelevant for this test.
protected array $zones
리턴 array