Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
2 | class MemcachedTest extends \PHPUnit\Framework\TestCase |
||
3 | { |
||
4 | public function testConstruct() |
||
5 | { |
||
6 | $cacheFile = new \Suricate\Cache\Memcache(); |
||
7 | $this->assertEquals('localhost', $cacheFile->host); |
||
8 | } |
||
9 | |||
10 | public function testGetSetPort() |
||
11 | { |
||
12 | $cacheFile = new \Suricate\Cache\Memcache(); |
||
13 | |||
14 | $this->assertEquals(11211, $cacheFile->getPort()); |
||
15 | $cacheFile->setPort(11221); |
||
16 | $this->assertEquals(11221, $cacheFile->getPort()); |
||
17 | } |
||
18 | |||
19 | public function testGetSetHost() |
||
26 | } |
||
27 | |||
28 | public function testGetSetExpiry() |
||
35 | } |
||
36 | } |
||
37 |