public function testValidatesError()
 {
     $validator = new ClamavValidator($this->translator, $this->error_data, array('file' => 'clamav'), $this->messages);
     chmod($this->error_data['file'], 00);
     $this->setExpectedException('\\Sunspikes\\ClamavValidator\\ClamavValidatorException', 'Access denied.');
     $validator->passes();
 }
 public function testValidatesVirus()
 {
     $validator = new ClamavValidator($this->translator, $this->virus_data, array('file' => 'clamav'), $this->messages);
     $this->assertFalse($validator->passes());
 }