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