evaluate() public method

Method to evaluate the validator
public evaluate ( mixed $input = null ) : boolean
$input mixed
return boolean
Beispiel #1
0
 public function testEvaluateFalse()
 {
     $v = new Email(null, null, false);
     $this->assertFalse($v->evaluate('*****@*****.**'));
     $this->assertTrue($v->evaluate('testtestcom'));
 }