diff options
author | Unknown <ilovemilk@wusa.io> | 2018-12-01 18:21:33 +0300 |
---|---|---|
committer | Matthias Held <ilovemilk@wusa.io> | 2018-12-01 18:29:46 +0300 |
commit | c80ecc3ba940d848e4e0bc874b455a4b84502449 (patch) | |
tree | ed55bc2309384ce900944b6ee2c5141523f6b5a6 /tests | |
parent | 3856ca7560847f0b14acc3134bbbcc6163346d10 (diff) |
Remove tests for removed method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Unit/Analyzer/EntropyAnalyzerTest.php | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tests/Unit/Analyzer/EntropyAnalyzerTest.php b/tests/Unit/Analyzer/EntropyAnalyzerTest.php index b630bb2..fc4dfc1 100644 --- a/tests/Unit/Analyzer/EntropyAnalyzerTest.php +++ b/tests/Unit/Analyzer/EntropyAnalyzerTest.php @@ -123,35 +123,6 @@ class EntropyAnalyzerTest extends TestCase $this->assertEquals($this->invokePrivate($entropyAnalyzer, 'createEntropyArrayFromFile', [$node, EntropyAnalyzer::BLOCK_SIZE]), []); } - public function dataCreateEntropyArrayFromData() - { - return [ - ['data' => 'asdf', 'blockSize' => 1, 'array' => [7.9, 7.9, 7.9, 7.9]], - ['data' => '', 'blockSize' => 1, 'array' => []], - ['data' => 'asdf', 'blockSize' => 2, 'array' => [7.9, 7.9]], - ['data' => 'a', 'blockSize' => 2, 'array' => []], - ['data' => 'aa', 'blockSize' => 2, 'array' => [7.9]], - ['data' => 'foobar1', 'blockSize' => 2, 'array' => [7.9, 7.9, 7.9]], - ]; - } - - /** - * @dataProvider dataCreateEntropyArrayFromData - * - * @param string $data - * @param int $blockSize - * @param array $array - */ - public function testCreateEntropyArrayFromData($data, $blockSize, $array) - { - $entropyAnalyzer = new EntropyAnalyzer($this->logger, $this->rootFolder, $this->entropy, $this->userId); - - $this->entropy->method('calculateEntropy') - ->willReturn(7.9); - - $this->assertEquals($this->invokePrivate($entropyAnalyzer, 'createEntropyArrayFromData', [$data, $blockSize]), $array); - } - public function testCalculateStandardDeviationOfEntropy() { $entropyAnalyzer = new EntropyAnalyzer($this->logger, $this->rootFolder, $this->entropy, $this->userId); |