/** * Make sure that we can retrieve the alpha-2 code. */ public function testGetAlpha2Code() { $this->assertEquals('TS', $this->country->getAlpha2Code(), 'The alpha-2 code "TS" should be returned.'); }
/** * Checks that the "US" country has had its values properly set. */ private function checkCountry(Country $country) { $this->assertEquals('US', $country->getAlpha2Code(), 'The alpha-2 code should be set.'); $this->assertEquals('USA', $country->getAlpha3Code(), 'The alpha-3 code should be set.'); $this->assertEquals('United States of America', $country->getLongName(), 'The long name should be set.'); $this->assertEquals(840, $country->getNumericCode(), 'The numeric code should be set.'); $this->assertEquals('United States', $country->getShortName(), 'The short name should be set.'); }