diff options
author | Matthias Held <ilovemilk@wusa.io> | 2019-05-16 22:58:40 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2019-05-16 22:58:40 +0300 |
commit | fd88a4369e91ca11358516047803f9c309bfa2d9 (patch) | |
tree | 47756f506de399ebbb2968ce3f8a3b3b46f01f66 /tests | |
parent | 4d79e6d40d1e80c0f131533cfec210e6d0758df0 (diff) |
fix tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Analyzer/EntropyAnalyzerTest.php | 5 |
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); |