ALPHA 3.0.2a

This commit is contained in:
TheGamecraft
2018-09-10 08:51:18 -04:00
parent 7fe13ae0a7
commit 0e0ef86b71
1404 changed files with 10604 additions and 33714 deletions

View File

@@ -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;

View File

@@ -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);