Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
15 | public function testMemcacheServerUp(): void |
||
16 | { |
||
17 | $testData = new TestData([ |
||
18 | 'serverStats' => ['bytes' => 1024, 'limit_maxbytes' => 2048], |
||
19 | 'host' => 'testhost.example.org', |
||
20 | ]); |
||
21 | $testCase = new TestCase\Store\Memcache\Server($testData); |
||
22 | |||
23 | $testResult = $testCase->getTestResult(); |
||
24 | $testOutput = $testResult->getOutput(); |
||
25 | |||
26 | $this->assertEquals(State::OK, $testResult->getState()); |
||
27 | $this->assertEquals(50, $testOutput['freePercentage']); |
||
28 | } |
||
42 |