addProvider(new Payment($faker)); $this->faker = $faker; } public function testVatIsValid() { $vat = $this->faker->vat(); $unspacedVat = $this->faker->vat(false); $this->assertRegExp('/^(AT U\d{8})$/', $vat); $this->assertRegExp('/^(ATU\d{8})$/', $unspacedVat); } }