validate() public method

public validate ( $input )
 public function testShouldInvalidateWhenItIsNotAValidFile()
 {
     $rule = new Mimetype('application/octet-stream');
     $this->assertFalse($rule->validate(__DIR__));
 }
Beispiel #2
0
 public function testShouldInvalidateWhenNotStringNorSplFileInfo()
 {
     $rule = new Mimetype('application/octet-stream');
     $this->assertFalse($rule->validate(array(__FILE__)));
 }