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