From a488bac49fe49aa3ba4c51153488caffa42cd611 Mon Sep 17 00:00:00 2001 From: newman101 Date: Fri, 13 Nov 2015 10:27:57 +0000 Subject: [PATCH] Added unit test folder for en_UG provider and AddressTest.php --- test/Faker/Provider/en_UG/AddressTest.php | 52 +++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 test/Faker/Provider/en_UG/AddressTest.php diff --git a/test/Faker/Provider/en_UG/AddressTest.php b/test/Faker/Provider/en_UG/AddressTest.php new file mode 100644 index 0000000000..484b125bf0 --- /dev/null +++ b/test/Faker/Provider/en_UG/AddressTest.php @@ -0,0 +1,52 @@ +addProvider(new Address($faker)); + $this->faker = $faker; + } + + /** + * @test + */ + public function testCityName() + { + $city = $this->faker->cityName(); + $this->assertNotEmpty($city); + $this->assertInternalType('string', $city); + } + + /** + * @test + */ + public function testDistrict() + { + $district = $this->faker->district(); + $this->assertNotEmpty($district); + $this->assertInternalType('string', $district); + } + + /** + * @test + */ + public function testRegion() + { + $region = $this->faker->region(); + $this->assertNotEmpty($region); + $this->assertInternaltype('string', $region); + } +}