/** * @expectedException Fliglio\Web\ValidationException */ public function testBadRequestThrownWhenValidatingInvalidIntParam() { // given $param = new IntParam("foo"); // when $param->validate(); }
/** * @expectedException Fliglio\Web\ValidationException */ public function testInvalid_Double() { $param = new IntParam(34.34); $param->validate(); }