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