예제 #1
0
 /**
  * Method to get property Rule
  *
  * @return  ValidatorInterface
  */
 public function getValidator()
 {
     if (!$this->validator instanceof ValidatorInterface) {
         $this->validator = ValidatorHelper::create($this->validator);
     }
     return $this->validator;
 }
예제 #2
0
 /**
  * testCreateByClassName
  *
  * @return  void
  */
 public function testCreateByClassName()
 {
     $filter = ValidatorHelper::create('Windwalker\\Form\\Test\\Stub\\StubValidator');
     $this->assertInstanceOf('Windwalker\\Form\\Test\\Stub\\StubValidator', $filter);
 }