Пример #1
0
 /**
  * Test that we can get and set the country
  *
  * @covers \OpenWeatherMap\Entity\City::getCountry
  * @covers \OpenWeatherMap\Entity\City::setCountry
  */
 public function testGetSetCountry()
 {
     $country = 'AU';
     $city = new City();
     $this->assertNull($city->getCountry());
     $this->assertSame($city, $city->setCountry($country));
     $this->assertEquals($country, $city->getCountry());
 }