@@ 62-71 (lines=10) @@ | ||
59 | $this->assertInstanceOf(PrefixedCachePool::class, $container->get('cache.provider.prefixed')); |
|
60 | } |
|
61 | ||
62 | public function testMemcachedWithWithDefaultConfiguration() |
|
63 | { |
|
64 | if (!class_exists('Memcached')) { |
|
65 | $this->markTestSkipped('Skipping since Memcached is not installed.'); |
|
66 | } |
|
67 | $this->bootKernel(); |
|
68 | $container = $this->getContainer(); |
|
69 | $this->assertInstanceOf(MemcachedCachePool::class, $container->get('cache.provider.memcached')); |
|
70 | $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcached')); |
|
71 | } |
|
72 | ||
73 | public function testMemcacheWithWithDefaultConfiguration() |
|
74 | { |
|
@@ 88-98 (lines=11) @@ | ||
85 | $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_memcache')); |
|
86 | } |
|
87 | ||
88 | public function testRedisWithWithDefaultConfiguration() |
|
89 | { |
|
90 | if (!class_exists('Redis')) { |
|
91 | $this->markTestSkipped('Skipping since Memcache is not installed.'); |
|
92 | } |
|
93 | ||
94 | $this->bootKernel(); |
|
95 | $container = $this->getContainer(); |
|
96 | $this->assertInstanceOf(RedisCachePool::class, $container->get('cache.provider.redis')); |
|
97 | $this->assertInstanceOf(DoctrineCachePool::class, $container->get('cache.provider.doctrine_redis')); |
|
98 | } |
|
99 | } |
|
100 |