Exemplo n.º 1
0
 /**
  *
  * @expectedException Application\Exceptions\ValidateException
  */
 public function testValidationFail2()
 {
     $filters = $this->filters;
     $listFilter1 = new App_ListFilter(array('filters' => $filters));
     $listFilter1->setRemoveInvalidFilters(false);
     $listFilter1->setValidators(array('fieldName1' => array('Regex' => array('pattern' => '/^eq/'), 'Alpha' => array('allowWhiteSpace' => true)), 'fieldName2' => array('Alpha' => array('allowWhiteSpace' => true), 'Regex' => array('pattern' => '/^grerThan$/')), 'fieldName3' => array('Regex' => array('pattern' => '/^lessThan$/'))));
     $listFilter1->isValid();
 }