Skip to content

Commit

Permalink
Merge pull request #3 from peter279k/test_enhancement
Browse files Browse the repository at this point in the history
Test enhancement
  • Loading branch information
alexslipknot authored Dec 18, 2018
2 parents 9e143cc + 8859cea commit 30f409a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ php:
- 7.0
- 7.1
- 7.2
- 7.3

before_script:
- composer install --no-interaction --prefer-source --dev
- composer install --no-interaction --prefer-source

script: vendor/bin/phpunit --configuration phpunit.xml
script: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php": ">=5.4"
},
"require-dev": {
"phpunit/phpunit": "^4.0"
"phpunit/phpunit": "^4.8 || ^5.7 || ^6.5"
},
"autoload": {
"psr-4": {
Expand All @@ -35,4 +35,4 @@
"AntiMalware\\Tests\\": "tests/"
}
}
}
}
6 changes: 3 additions & 3 deletions tests/ScanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ public function testScan()
$result = $scanner->scanFile($file, false);

if (strpos($file, '/samples/positive/') !== false) {
$this->assertTrue(!empty($result));
$this->assertNotEmpty($result);
}

if (strpos($file, '/samples/negative/') !== false) {
$this->assertTrue(empty($result));
$this->assertEmpty($result);
}
}
}
}
}

0 comments on commit 30f409a

Please sign in to comment.