mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-20 23:39:51 +01:00
Fix test failing due to bad luck
Sometimes shit happens... The Romanian national identity card number generator generated a non-exisiting date (02/29/98). Fixing the seed solves the problem.
This commit is contained in:
parent
675fe90cce
commit
ef047cc3ea
@ -13,6 +13,7 @@ class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
public function setUp()
|
||||
{
|
||||
$faker = new Generator();
|
||||
$faker->seed(1);
|
||||
$faker->addProvider(new DateTime($faker));
|
||||
$faker->addProvider(new Person($faker));
|
||||
$this->faker = $faker;
|
||||
|
Loading…
x
Reference in New Issue
Block a user