From 788a8ec286d07e09ad2e251ad1ff4c5f5ab5f50a Mon Sep 17 00:00:00 2001 From: newman101 Date: Fri, 16 Oct 2015 20:37:36 +0100 Subject: [PATCH] Finnish unit tests added --- test/Faker/Provider/fi_FI/InternetTest.php | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/Faker/Provider/fi_FI/InternetTest.php diff --git a/test/Faker/Provider/fi_FI/InternetTest.php b/test/Faker/Provider/fi_FI/InternetTest.php new file mode 100644 index 0000000000..3f0e50679a --- /dev/null +++ b/test/Faker/Provider/fi_FI/InternetTest.php @@ -0,0 +1,32 @@ +addProvider(new Person($faker)); + $faker->addProvider(new Internet($faker)); + $faker->addProvider(new Company($faker)); + $this->faker = $faker; + } + + public function testEmailIsValid() + { + $email = $this->faker->email(); + $this->assertNotFalse(filter_var($email, FILTER_VALIDATE_EMAIL)); + } +}