/** * Test the validity of province abbreviation */ public function testProvinceAbbr() { $provinceAbbr = $this->faker->provinceAbbr(); $this->assertNotEmpty($provinceAbbr); $this->assertInternalType('string', $provinceAbbr); $this->assertRegExp('/^[A-Z]{2}$/', $provinceAbbr); }