__toString() public method

Returns country name as native string
public __toString ( ) : string
return string
Ejemplo n.º 1
0
 public function testToString()
 {
     $italy = new Country(CountryCode::IT());
     $this->assertSame('Italy', $italy->__toString());
 }