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