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