Skip to content

Commit 9298a2d

Browse files
committed
Updated tests
1 parent aa60aec commit 9298a2d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3'
22

33
services:
44
clamav:
5-
image: appwrite/clamav:v1.0.1
5+
image: appwrite/clamav:v1.0.2
66
restart: unless-stopped
77
ports:
88
- "3310:3310"

tests/ClamAV/ClamAVTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ClamAVTest extends TestCase
3232
public function setUp()
3333
{
3434
$this->network = new Network('localhost', 3310);
35-
$this->pipe = new Pipe('clam');
35+
$this->pipe = new Pipe();
3636
}
3737

3838
public function tearDown()
@@ -43,9 +43,7 @@ public function tearDown()
4343

4444
public function testVersion()
4545
{
46-
var_dump($this->network->version());
4746
$this->assertStringStartsWith('ClamAV ', $this->network->version());
48-
//$this->assertStringStartsWith('ClamAV ', $this->pipe->version());
4947
}
5048

5149
public function testPing()
@@ -55,7 +53,7 @@ public function testPing()
5553

5654
public function testFileScan()
5755
{
58-
$this->assertEquals(false, $this->network->fileScan('/home/NoVirus.txt'));
59-
//$this->assertEquals(true, $this->network->fileScan('/home/Virus.txt'));
56+
$this->assertEquals(true, $this->network->fileScan('/home/NoVirus.txt'));
57+
$this->assertEquals(false, $this->network->fileScan('/home/Virus.txt'));
6058
}
6159
}

0 commit comments

Comments
 (0)