validate() public method

Check for version format
public validate ( string $input ) : boolean
$input string
return boolean
Beispiel #1
0
 /**
  * @dataProvider providerForFail
  * @expectedException \Bluz\Validator\Exception\ValidatorException
  */
 public function testInvalidVersionShouldThrowException($input)
 {
     $rule = new Version();
     $this->assertFalse($rule->validate($input));
     $this->assertFalse($rule->assert($input));
 }