PHP Class DragonBe\Test\Vies\ViestTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: dragonbe/vies

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
_createdStubbedViesClient ( $response )

Private Methods

Méthode Description
createHeartBeatMock ( $bool )

Method Details

_createdStubbedViesClient() protected méthode

protected _createdStubbedViesClient ( $response )

badCountryCodeProvider() public méthode

testConvertObjectIntoArray() public méthode

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

testDefaultOptionsAreEmpty() public méthode

testDefaultSoapClientIsLazyLoaded() public méthode

testExceptionIsRaisedForNonEuropeanUnionCountryCodes() public méthode

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

testExceptionIsRaisedForNonEuropeanUnionCountryCodesRequester() public méthode

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

testExceptionIsRaisedSoapFault() public méthode

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

testFailureVatNumberValidation() public méthode

testGetDefaultHeartBeatWhenNoneSpecified() public méthode

testGettingDefaultSoapClient() public méthode

testGettingDefaultWsdl() public méthode

testOptionsCanBeSet() public méthode

public testOptionsCanBeSet ( )

testRetrievingListOfEuropeanCountriesStatically() public méthode

testServiceIsAlive() public méthode

public testServiceIsAlive ( )

testServiceIsDown() public méthode

public testServiceIsDown ( )

testSettingCustomWsdl() public méthode

testSettingSoapOptions() public méthode

testSuccessVatNumberValidation() public méthode

testSuccessVatNumberValidationWithRequester() public méthode

testVatNumberFilter() public méthode

public testVatNumberFilter ( $vatNumber, $filteredNumber )

vatNumberProvider() public méthode

public vatNumberProvider ( )