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:
authorMatthias Held <ilovemilk@wusa.io>2019-05-19 20:55:00 +0300
committerMatthias Held <ilovemilk@wusa.io>2019-05-19 20:55:00 +0300
commit701b9819e09967c88d595b4be6652c8e829d0467 (patch)
tree8b073680c4361e9c1f5c38e6f45e2b90729781a9
parent1999852dd4c45e92982613d5946352a0a4b6a796 (diff)
fix tests by fix naming of methods
-rw-r--r--tests/Unit/Entropy/EntropyTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Entropy/EntropyTest.php b/tests/Unit/Entropy/EntropyTest.php
index 84cd37a..f4f87ce 100644
--- a/tests/Unit/Entropy/EntropyTest.php
+++ b/tests/Unit/Entropy/EntropyTest.php
@@ -83,8 +83,8 @@ class EntropyTest extends TestCase
$standardDeviation = 0.0;
foreach($data as $key => $value) {
$sum = $sum + pow($value, 2);
- $mean = $this->invokePrivate($this->entropy, 'streamMean', [$mean, $value, $key + 1]);
- $standardDeviation = $this->invokePrivate($this->entropy, 'streamStandardDeviation', [$key + 1, $sum, $mean]);
+ $mean = $this->invokePrivate($this->entropy, 'calculateMeanOfSeries', [$mean, $value, $key + 1]);
+ $standardDeviation = $this->invokePrivate($this->entropy, 'calculateStandardDeviationOfSeries', [$key + 1, $sum, $mean]);
}
$this->assertEquals(number_format($standardDeviation, 6), $sd);
}