Conditions | 4 |
Paths | 6 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 5 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function setUp() { |
||
18 | $success = false; |
||
19 | $this->cache = new RedisCache(); |
||
20 | $this->cache->connect('127.0.0.1', $this->port); |
||
21 | if ($this->cache->save('test', 'Success')) { |
||
22 | if ($this->cache->fetch('test') == 'Success') { |
||
23 | $success = true; |
||
24 | parent::setUp(); |
||
25 | } |
||
26 | } |
||
27 | if($success !== true){ |
||
28 | $this->markTestSkipped('Redis extension may not be loaded'); |
||
29 | } |
||
30 | } |
||
31 | |||
33 |