public function testMultiscanFile() { $this->socket->expects($this->any())->method('read')->will($this->returnValue('/tmp/quahog/EICAR: Eicar-Test-Signature FOUND')); $result = $this->quahog->multiscanFile('/tmp/quahog'); $this->assertSame('Eicar-Test-Signature', $result['reason']); $this->assertSame('FOUND', $result['status']); }