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); } }