Пример #1
0
 public function testVatIsValid()
 {
     $vat = $this->faker->vat();
     $unspacedVat = $this->faker->vat(false);
     $this->assertRegExp('/^(BE 0\\d{9})$/', $vat);
     $this->assertRegExp('/^(BE0\\d{9})$/', $unspacedVat);
 }
Пример #2
0
 public function testVAT()
 {
     $vat = $this->faker->vat();
     $this->assertTrue($this->isValidCIF($vat));
 }