public function testGetCountryName() { $this->assertSame(CountryCodeName::getName($this->address->getCountry()->getCode())->toNative(), $this->address->getCountry()->getName()->toNative()); }
/** * @return String */ public function getName() { return CountryCodeName::getName($this->code); }
/** * @expectedException \InvalidArgumentException */ public function testGetNameWithIncorrectCode() { $this->assertSame(CountryCodeName::getName(new String("KU"))->toNative(), "Poland"); }