getValidators() public method

Get validators
public getValidators ( ) : array
return array
Esempio n. 1
0
 public function testSetAndGetValidators()
 {
     $e = new Element('text', 'email');
     $e->setValidators(array(new Email()));
     $vals = $e->getValidators();
     $this->assertEquals(1, count($vals));
 }