/**
  * @covers \OpenWeatherMap\Entity\Sun::getSet
  * @covers \OpenWeatherMap\Entity\Sun::setSet
  */
 public function testGetSetSet()
 {
     $set = '2014-01-27T16:37:44';
     $sun = new Sun();
     $this->assertNull($sun->getSet());
     $this->assertSame($sun, $sun->setSet($set));
     $this->assertInstanceOf('DateTime', $sun->getSet());
 }
 /**
  * Test that we can extract the values from an instance of Sun
  *
  * @covers \OpenWeatherMap\Hydrator\Strategy\SunStrategy::extract
  */
 public function testExtract()
 {
     $rise = '2014-01-01T06:00:00';
     $set = '2014-01-01T20:00:00';
     $strategy = new SunStrategy();
     $sun = new Sun();
     $sun->setRise($rise)->setSet($set);
     $values = $strategy->extract($sun);
     $this->assertArrayHasKey('rise', $values);
     $this->assertArrayHasKey('set', $values);
 }