addProvider(new Person($faker)); $faker->addProvider(new Internet($faker)); $faker->addProvider(new Company($faker)); $this->faker = $faker; } /** * @test */ public function emailIsValid() { $email = $this->faker->email(); $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL)); } }