Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/undo-ransomware/ransomware_detection.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Held <ilovemilk@wusa.io>2018-09-07 14:23:21 +0300
committerMatthias Held <ilovemilk@wusa.io>2018-09-07 14:23:21 +0300
commit5d7a2808606c2d939ad0ceffbbb1277f0fff67e7 (patch)
tree82283e99459c44d584be150d511c8b05eac57de0 /tests
parent99516bcde8fd56a63233d8ace128e754c86b3356 (diff)
Fix file corruption analyzer
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
index f93d19e..182cc33 100644
--- a/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
+++ b/tests/Unit/Analyzer/FileCorruptionAnalyzerTest.php
@@ -96,9 +96,11 @@ class FileCorruptionAnalyzerTest extends TestCase
public function dataIsCorrupted()
{
return [
- ['data' => 'ffff', 'extension' => 'unknown', 'result' => true],
- ['data' => 'ffd8ffffffff', 'extension' => 'csv', 'result' => true],
- ['data' => 'ffd8ffffffff', 'extension' => 'jpg', 'result' => false],
+ ['data' => 'ffff', 'extension' => 'unknown', 'result' => false],
+ ['data' => 'ffd8ffffffff', 'extension' => 'csv', 'result' => false],
+ ['data' => 'ffd8ffe000104a46494600ffffffd9', 'extension' => 'jpg', 'result' => false],
+ ['data' => 'ffd8ffe000104a46494600ffff', 'extension' => 'jpg', 'result' => true],
+ ['data' => 'ffff', 'extension' => 'jpg', 'result' => true],
];
}