/**
  * @expectedException \Exception
  */
 public function testItThrowsIfValidationFails()
 {
     f\fill_validating_or_throw(array('a' => 1), array('a' => f\required(array('v' => 'is_float'))));
 }
Example #2
0
 public function __construct($params)
 {
     $newParams = is_string($params) ? ['id' => $params] : $params;
     $this->params = f\fill_validating_or_throw($newParams, $this->getParamsRules());
 }
Example #3
0
 public function __construct(array $params)
 {
     $this->params = f\fill_validating_or_throw($params, $this->getParamsRules());
 }
 public function __construct(array $params)
 {
     $this->params = f\fill_validating_or_throw($params, SymfonyConfigurableKernel::paramRules());
 }
 public function __construct($params)
 {
     $this->params = f\fill_validating_or_throw($params, self::paramRules());
     parent::__construct($this->params['env'], $this->params['debug']);
 }
 public function __construct(array $params)
 {
     $this->params = f\fill_validating_or_throw($params, array('separator' => f\required(array('v' => 'is_string'))));
 }