/**
  * @covers \OpenWeatherMap\Hydrator\Strategy\WindDirectionStrategy::extract
  */
 public function testExtract()
 {
     $deg = 256;
     $code = "WSW";
     $name = "West-southwest";
     $windDirection = new WindDirection();
     $windDirection->setDeg($deg)->setCode($code)->setName($name);
     $windDirectionStrategy = new WindDirectionStrategy();
     $values = $windDirectionStrategy->extract($windDirection);
     $this->assertArrayHasKey('deg', $values);
     $this->assertArrayHasKey('code', $values);
     $this->assertArrayHasKey('name', $values);
     $this->assertEquals($values['deg'], $deg);
     $this->assertEquals($values['code'], $code);
     $this->assertEquals($values['name'], $name);
 }
 /**
  * @covers \OpenWeatherMap\Entity\WindDirection::getDeg
  * @covers \OpenWeatherMap\Entity\WindDirection::setDeg
  */
 public function testGetSetDeg()
 {
     $deg = "182.503";
     $windDirection = new WindDirection();
     $this->assertNull($windDirection->getDeg());
     $this->assertSame($windDirection, $windDirection->setDeg($deg));
     $this->assertEquals($deg, $windDirection->getDeg());
 }