1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace Faker\Provider\pl_PL;
- use Faker\Generator;
- class AddressTest extends \PHPUnit_Framework_TestCase
- {
- /**
- * @var Generator
- */
- private $faker;
- public function setUp()
- {
- $faker = new Generator();
- $faker->addProvider(new Address($faker));
- $this->faker = $faker;
- }
- /**
- * Test the validity of state
- */
- public function testState()
- {
- $state = $this->faker->state();
- $this->assertNotEmpty($state);
- $this->assertInternalType('string', $state);
- $this->assertRegExp('/[a-z]+/', $state);
- }
- }
|