Beispiel #1
0
 /**
  * @expectedException Fliglio\Http\Exceptions\UnprocessableEntityException
  */
 public function testBadRequestThrownWhenGettingInvalidParam()
 {
     // given
     $param = new Param("foo");
     $param->addConstraint(new Assert\Length(array('min' => 10)));
     // when
     $foo = $param->get();
 }
Beispiel #2
0
 public function get()
 {
     return (int) parent::get();
 }