addProvider(new Company($faker)); $this->faker = $faker; } public function testGenerateValidVatNumber() { $vatNo = $this->faker->vat(); $this->assertEquals(14, strlen($vatNo)); $this->assertRegExp('/^NL[0-9]{9}B[0-9]{2}$/', $vatNo); } public function testGenerateValidBtwNumberAlias() { $btwNo = $this->faker->btw(); $this->assertEquals(14, strlen($btwNo)); $this->assertRegExp('/^NL[0-9]{9}B[0-9]{2}$/', $btwNo); } }