validate() public méthode

public validate ( $input )
Exemple #1
0
 public function testShouldValidateKeysWhenEmpty()
 {
     $input = [];
     $key1 = new Key('foo', new AlwaysValid(), true);
     $key2 = new Key('bar', new AlwaysValid(), true);
     $keySet = new KeySet($key1, $key2);
     $this->assertFalse($keySet->validate($input));
 }