Completed
Push — master ( 9f316b...521c5d )
by Mehmet
02:30
created

RedisCachePersistentTest::setUp()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 8
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 8
loc 8
rs 9.4285
cc 1
eloc 5
nc 1
nop 0
1
<?php
2
namespace tests;
3
4
use Soupmix\Cache as c;
5
use Redis;
6
class RedisCachePersistentTest extends AbstractTestCases
7
{
8
    protected function setUp()
9
    {
10
        $handler = new Redis();
11
        $handler->pconnect(
12
            $this->redisConfig['host'],
13
            $this->redisConfig['port'],
14
            $this->redisConfig['timeout'],
15
            $this->redisConfig['persistentId']
16
        );
17
        $handler->select($this->redisConfig['dbIndex']);
18
        $this->client = new c\RedisCache($handler);
19
        $this->client->clear();
20
    }
21
22
23
}
24