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