/** * Test that passing an invalid value to setMode results in an exception * being thrown * * @expectedException InvalidArgumentException * @covers \OpenWeatherMap\Entity\Precipitation::setMode */ public function testSetModeThrowsException() { $precipitation = new Precipitation(); $mode = new stdClass(); $precipitation->setMode($mode); }