mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-25 20:29:10 -04:00
ALPHA 3.0.2a
This commit is contained in:
@@ -5,8 +5,9 @@ namespace Faker\Test\Provider\fr_FR;
|
||||
use Faker\Calculator\Luhn;
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\fr_FR\Company;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class CompanyTest extends \PHPUnit_Framework_TestCase
|
||||
class CompanyTest extends TestCase
|
||||
{
|
||||
private $faker;
|
||||
|
||||
|
||||
@@ -4,8 +4,9 @@ namespace Faker\Test\Provider\fr_FR;
|
||||
|
||||
use Faker\Generator;
|
||||
use Faker\Provider\fr_FR\Person;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
class PersonTest extends TestCase
|
||||
{
|
||||
private $faker;
|
||||
|
||||
@@ -21,13 +22,13 @@ class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
$nir = $this->faker->nir(\Faker\Provider\Person::GENDER_MALE);
|
||||
$this->assertStringStartsWith('1', $nir);
|
||||
}
|
||||
|
||||
|
||||
public function testNIRReturnsTheRightPattern()
|
||||
{
|
||||
$nir = $this->faker->nir;
|
||||
$this->assertRegExp("/^[12]\d{5}[0-9A-B]\d{8}$/", $nir);
|
||||
}
|
||||
|
||||
|
||||
public function testNIRFormattedReturnsTheRightPattern()
|
||||
{
|
||||
$nir = $this->faker->nir(null, true);
|
||||
|
||||
Reference in New Issue
Block a user