/** * Test that we can get and set the Sun * * @covers \OpenWeatherMap\Entity\City::getSun * @covers \OpenWeatherMap\Entity\City::setSun */ public function testGetSetSun() { $sun = new Sun(); $city = new City(); $this->assertNull($city->getSun()); $this->assertSame($city, $city->setSun($sun)); $this->assertSame($sun, $city->getSun()); }