1
0
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:
Francois Zaninotto 2014-04-13 22:31:02 +02:00
parent 675fe90cce
commit ef047cc3ea

View File

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