| Total Complexity | 2 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class TestMemcacheServerTest extends \PHPUnit_Framework_TestCase |
||
| 14 | { |
||
| 15 | public function testMemcacheServerUp() |
||
| 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 | } |
||
| 29 | |||
| 30 | public function testMemcacheServerDown() |
||
| 40 | } |
||
| 41 | } |
||
| 42 |