addProvider(new Payment($faker)); $this->faker = $faker; } public function testVatIsValid() { $vat = $this->faker->vat(); $unspacedVat = $this->faker->vat(false); $this->assertRegExp('/^(BG \d{9,10})$/', $vat); $this->assertRegExp('/^(BG\d{9,10})$/', $unspacedVat); } }