Пример #1
0
 public function testGetName()
 {
     $code = CountryCode::IT();
     $name = CountryCodeName::getName($code);
     $expectedString = new StringLiteral('Italy');
     $this->assertTrue($name->sameValueAs($expectedString));
 }
Пример #2
0
 public function testGetCountry()
 {
     $country = new Country(CountryCode::IT());
     $this->assertTrue($this->address->getCountry()->sameValueAs($country));
 }
Пример #3
0
 public function testToString()
 {
     $italy = new Country(CountryCode::IT());
     $this->assertSame('Italy', $italy->__toString());
 }