123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Faker\Test\Provider\nl_BE;
- use Faker\Generator;
- use Faker\Provider\nl_BE\Payment;
- class PaymentTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @var Generator
- */
- private $faker;
- public function setUp()
- {
- $faker = new Generator();
- $faker->addProvider(new Payment($faker));
- $this->faker = $faker;
- }
- 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);
- }
- }
|