public function testGetName() { $code = CountryCode::IT(); $name = CountryCodeName::getName($code); $expectedString = new StringLiteral('Italy'); $this->assertTrue($name->sameValueAs($expectedString)); }
public function testGetCountry() { $country = new Country(CountryCode::IT()); $this->assertTrue($this->address->getCountry()->sameValueAs($country)); }
public function testToString() { $italy = new Country(CountryCode::IT()); $this->assertSame('Italy', $italy->__toString()); }