Beispiel #1
0
 public function testParamRuleConstructsAcceptsVAndN()
 {
     $pr = new f\param_rule(array('v' => 'bar', 'n' => 'foo'));
     $this->assertSame('bar', $pr->getValidator());
     $this->assertSame('foo', $pr->getNormalizer());
 }
Beispiel #2
0
 public function __construct(array $params)
 {
     parent::__construct($params);
     $this->defaultValue = $this->getFirstParam($params, array('default_value', 'd'));
 }