Пример #1
0
 public function testGetCountry()
 {
     $this->assertInstanceOf(CountryInterface::class, $this->location->getCountry());
     $this->assertEquals('BR', $this->location->getCountry()->getAlpha2Code());
     $this->assertEquals('BRA', $this->location->getCountry()->getAlpha3Code());
     $this->assertEquals('Republica Federativa do Brasil', $this->location->getCountry()->getLongName());
     $this->assertEquals('Brasil', $this->location->getCountry()->getShortName());
     $this->assertEquals(123, $this->location->getCountry()->getNumericCode());
 }