Code Duplication    Length = 13-15 lines in 2 locations

tests/RedisCachePersistentTest.php 1 location

@@ 6-18 (lines=13) @@
3
4
use Soupmix;
5
6
class RedisCachePersistentTest extends AbstractTestCases
7
{
8
    protected function setUp()
9
    {
10
        $this->client = new Soupmix\Cache\RedisCache([
11
            'host'       => '127.0.0.1',
12
            'persistent' => true
13
        ]);
14
        $this->client->clear();
15
    }
16
17
18
}
19

tests/RedisCacheTest.php 1 location

@@ 6-20 (lines=15) @@
3
4
use Soupmix;
5
6
class RedisCacheTest extends AbstractTestCases
7
{
8
    /**
9
     * @var \Soupmix\Cache\RedisCache $client
10
     */
11
    protected $client = null;
12
13
    protected function setUp()
14
    {
15
        $this->client = new Soupmix\Cache\RedisCache([
16
            'host'   => '127.0.0.1',
17
        ]);
18
        $this->client->clear();
19
    }
20
}
21