Code Duplication    Length = 10-11 lines in 3 locations

tests/Functional/BundleInitializationTest.php 3 locations

@@ 57-66 (lines=10) @@
54
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_predis'));
55
    }
56
57
    public function testMemcachedWithWithDefaultConfiguration()
58
    {
59
        if (!class_exists('Memcached')) {
60
            $this->markTestSkipped('Skipping since Memcached is not installed.');
61
        }
62
        $this->bootKernel();
63
        $container = $this->getContainer();
64
        $this->assertInstanceOf(MemcachedCachePool::class, $container->get('cache.provider.memcached'));
65
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcached'));
66
    }
67
68
    public function testMemcacheWithWithDefaultConfiguration()
69
    {
@@ 68-77 (lines=10) @@
65
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcached'));
66
    }
67
68
    public function testMemcacheWithWithDefaultConfiguration()
69
    {
70
        if (!class_exists('Memcache')) {
71
            $this->markTestSkipped('Skipping since Memcache is not installed.');
72
        }
73
        $this->bootKernel();
74
        $container = $this->getContainer();
75
        $this->assertInstanceOf(MemcacheCachePool::class, $container->get('cache.provider.memcache'));
76
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcache'));
77
    }
78
79
    public function testRedisWithWithDefaultConfiguration()
80
    {
@@ 79-89 (lines=11) @@
76
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcache'));
77
    }
78
79
    public function testRedisWithWithDefaultConfiguration()
80
    {
81
        if (!class_exists('Redis')) {
82
            $this->markTestSkipped('Skipping since Memcache is not installed.');
83
        }
84
85
        $this->bootKernel();
86
        $container = $this->getContainer();
87
        $this->assertInstanceOf(RedisCachePool::class, $container->get('cache.provider.redis'));
88
        $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_redis'));
89
    }
90
}
91