faker->addProvider(new \Faker\Provider\fr_FR\Address($this->faker)); $this->faker->addProvider(new \Faker\Provider\fr_FR\PhoneNumber($this->faker)); $countries = Country::toArray(); $country = $countries[\array_rand($countries)]; return [ 'firstname' => $this->faker->firstName, 'lastname' => $this->faker->lastName, 'birth_date' => $this->faker->dateTimeBetween('-60 years', '-18 years'), 'address' => $this->faker->address, 'address2' => '', 'phone' => $this->faker->phoneNumber, 'country' => $country, 'newcountry' => $country, 'city' => $this->faker->city, 'postcode' => $this->faker->postcode, 'opt_in' => $this->faker->boolean, 'hashcode' => $this->faker->sha1 ]; } }