/** * @covers \OpenWeatherMap\Hydrator\Strategy\TimeStrategy::extract */ public function testExtract() { $from = '2014-01-26T18:00:00'; $time = new Time(); $time->setFrom($from); $timeStrategy = new TimeStrategy(); $array = $timeStrategy->extract($time); $this->assertArrayHasKey('from', $array); }