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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Analyzer')
-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],
];
}