validateVatSum() public method

Validate a VAT number control sum
public validateVatSum ( string $countryCode, string $vatNumber ) : boolean
$countryCode string The two-character country code of a European member country
$vatNumber string The VAT number (without the country identification) of a registered company
return boolean
示例#1
0
 public function testVatNumberChecksumFailure()
 {
     $vies = new Vies();
     foreach ($this->vatNumberProvider() as $country => $numbers) {
         foreach ($numbers[1] as $number) {
             $result = $vies->validateVatSum($country, $number);
             $this->assertFalse($result);
         }
     }
 }