1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
<?php
namespace Faker\Test\Provider\fr_BE;
use Faker\Provider\fr_BE\Payment;
use Faker\Test\TestCase;
/**
* @group legacy
*/
final class PaymentTest extends TestCase
{
public function testVatIsValid()
{
$vat = $this->faker->vat();
$unspacedVat = $this->faker->vat(false);
self::assertMatchesRegularExpression('/^(BE 0\d{9})$/', $vat);
self::assertMatchesRegularExpression('/^(BE0\d{9})$/', $unspacedVat);
}
protected function getProviders(): iterable
{
yield new Payment($this->faker);
}
}
|