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>2019-05-16 22:58:40 +0300
committerMatthias Held <ilovemilk@wusa.io>2019-05-16 22:58:40 +0300
commitfd88a4369e91ca11358516047803f9c309bfa2d9 (patch)
tree47756f506de399ebbb2968ce3f8a3b3b46f01f66 /tests
parent4d79e6d40d1e80c0f131533cfec210e6d0758df0 (diff)
fix tests
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Analyzer/EntropyAnalyzerTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/Unit/Analyzer/EntropyAnalyzerTest.php b/tests/Unit/Analyzer/EntropyAnalyzerTest.php
index e8e93e9..656070e 100644
--- a/tests/Unit/Analyzer/EntropyAnalyzerTest.php
+++ b/tests/Unit/Analyzer/EntropyAnalyzerTest.php
@@ -128,7 +128,10 @@ class EntropyAnalyzerTest extends TestCase
{
$entropyAnalyzer = new EntropyAnalyzer($this->logger, $this->rootFolder, $this->entropy, $this->userId);
- $this->entropy->method('sd')
+ $this->entropy->method('streamMean')
+ ->willReturn(0.002);
+
+ $this->entropy->method('streamStandardDeviation')
->willReturn(0.004);
$this->assertEquals($this->invokePrivate($entropyAnalyzer, 'calculateStandardDeviationOfEntropy', [[]]), 0.004);