/** * @covers \OpenWeatherMap\Entity\Weather::setIcon */ public function testSetIconThrowsException() { $weather = new Weather(); $this->setExpectedException('\\InvalidArgumentException'); $weather->setIcon(new stdClass()); }