public function testValidCyprianFormat()
 {
     $vatNumber = new VATNumber('CY12345678L');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
 }
 public function testCroationFormat()
 {
     $vatNumber = new VATNumber('HR99999999999');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
 }
 public function testValidDanishFormat()
 {
     $vatNumber = new VATNumber('DK12 12 12 12');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
     $vatNumber = new VATNumber('DK12121212');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
 }
 public function testInvalidCountryCodeReturnValue()
 {
     $vatNumber = new VATNumber('US');
     $this->assertEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $vatNumber = new VATNumber('NL');
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
 }
 public function testValidLithuanianFormat()
 {
     $vatNumber = new VATNumber('LT123456789');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
     $vatNumber = new VATNumber('LT1234567890');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
     $vatNumber = new VATNumber('LT12345678901');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
     $vatNumber = new VATNumber('LT12345678902');
     $this->assertNotEquals(VATNumber::EMPTY_VAT_NUMBER, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_COUNTRY_CODE, $vatNumber->validateFormat());
     $this->assertNotEquals(VATNumber::INVALID_FORMAT, $vatNumber->validateFormat());
 }