File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '3'
22
33services :
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"
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments