validate() public method

Check input data
public validate ( string $input ) : boolean
$input string
return boolean
Esempio n. 1
0
 /**
  * @dataProvider providerForFail
  * @expectedException \Bluz\Validator\Exception\ValidatorException
  */
 public function testInvalidInChecksShouldThrowInException($input, $haystack, $strict = false)
 {
     $v = new In($haystack, $strict);
     $this->assertFalse($v->validate($input));
     $this->assertNotEmpty($v->__toString($input));
     $this->assertFalse($v->assert($input));
 }