/** * @throws WMException * @expectedException WMException */ function testValidateArgsException() { $ui = new WeatherMapEditorUI(); // there is no type called 'black' $this->assertFalse($ui->validateArgument("black", "white"), "Black is not a recognised type"); }