validate() public method

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