/** * @covers \OpenWeatherMap\Entity\WindDirection::setName */ public function testSetNameThrowsException() { $name = new stdClass(); $windDirection = new WindDirection(); $this->setExpectedException('\\InvalidArgumentException'); $windDirection->setName($name); }