PHP Class DragonBe\Test\Vies\ViestTest

Inheritance: extends PHPUnit_Framework_TestCase
Datei anzeigen Open project: dragonbe/vies

Public Methods

Method Description
badCountryCodeProvider ( )
testConvertObjectIntoArray ( CheckVatResponse $response )
testDefaultOptionsAreEmpty ( )
testDefaultSoapClientIsLazyLoaded ( )
testExceptionIsRaisedForNonEuropeanUnionCountryCodes ( $code ) Test to see the country code is rejected if not existing in the EU
testExceptionIsRaisedForNonEuropeanUnionCountryCodesRequester ( $code ) Test to see the country code is rejected if not existing in the EU
testExceptionIsRaisedSoapFault ( $vat ) Test exception ViesServiceException is thrown after SoapFault exception
testFailureVatNumberValidation ( )
testGetDefaultHeartBeatWhenNoneSpecified ( )
testGettingDefaultSoapClient ( )
testGettingDefaultWsdl ( )
testOptionsCanBeSet ( )
testRetrievingListOfEuropeanCountriesStatically ( )
testServiceIsAlive ( )
testServiceIsDown ( )
testSettingCustomWsdl ( )
testSettingSoapOptions ( )
testSuccessVatNumberValidation ( )
testSuccessVatNumberValidationWithRequester ( )
testVatNumberFilter ( $vatNumber, $filteredNumber )
vatNumberProvider ( )

Protected Methods

Method Description
_createdStubbedViesClient ( $response )

Private Methods

Method Description
createHeartBeatMock ( $bool )

Method Details

_createdStubbedViesClient() protected method

protected _createdStubbedViesClient ( $response )

badCountryCodeProvider() public method

testConvertObjectIntoArray() public method

public testConvertObjectIntoArray ( CheckVatResponse $response )
$response DragonBe\Vies\CheckVatResponse

testDefaultOptionsAreEmpty() public method

testDefaultSoapClientIsLazyLoaded() public method

testExceptionIsRaisedForNonEuropeanUnionCountryCodes() public method

Test to see the country code is rejected if not existing in the EU

testExceptionIsRaisedForNonEuropeanUnionCountryCodesRequester() public method

Test to see the country code is rejected if not existing in the EU

testExceptionIsRaisedSoapFault() public method

Test exception ViesServiceException is thrown after SoapFault exception
public testExceptionIsRaisedSoapFault ( $vat )
$vat

testFailureVatNumberValidation() public method

testGetDefaultHeartBeatWhenNoneSpecified() public method

testGettingDefaultSoapClient() public method

testGettingDefaultWsdl() public method

testOptionsCanBeSet() public method

public testOptionsCanBeSet ( )

testRetrievingListOfEuropeanCountriesStatically() public method

testServiceIsAlive() public method

public testServiceIsAlive ( )

testServiceIsDown() public method

public testServiceIsDown ( )

testSettingCustomWsdl() public method

testSettingSoapOptions() public method

testSuccessVatNumberValidation() public method

testSuccessVatNumberValidationWithRequester() public method

testVatNumberFilter() public method

public testVatNumberFilter ( $vatNumber, $filteredNumber )

vatNumberProvider() public method

public vatNumberProvider ( )