addProvider(new Address($faker)); $this->faker = $faker; } /** * */ public function testPostcodeIsNotEmptyAndIsValid() { $postcode = $this->faker->postcode(); $this->assertNotEmpty($postcode); $this->assertInternalType('string', $postcode); } /** * Test the name of the Nigerian State/County */ public function testCountyIsAValidString() { $county = $this->faker->county; $this->assertNotEmpty($county); $this->assertInternalType('string', $county); } /** * Test the name of the Nigerian Region in a State. */ public function testRegionIsAValidString() { $region = $this->faker->region; $this->assertNotEmpty($region); $this->assertInternalType('string', $region); } }