/** * @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(); }
public function get() { return (int) parent::get(); }