1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- namespace Faker\Provider\ng_NG;
- use Faker\Generator;
- use Faker\Provider\en_NG\Address;
- class AddressTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @var Generator
- */
- private $faker;
- public function setUp()
- {
- $faker = new Generator();
- $faker->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);
- }
- }
|