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