Fixed memcached test while comparing servers

This commit is contained in:
Alejandro Celaya 2016-08-09 18:56:01 +02:00
parent 39d2f5a38f
commit 43c6b56e42

View File

@ -97,7 +97,7 @@ class CacheFactoryTest extends TestCase
/** @var MemcachedCache $instance */
$instance = $this->factory->__invoke($this->createSM(MemcachedCache::class, ['servers' => $servers]), '');
$this->assertInstanceOf(MemcachedCache::class, $instance);
$this->assertEquals($servers, $instance->getMemcached()->getServerList());
$this->assertEquals(count($servers), count($instance->getMemcached()->getServerList()));
}
private function createSM($cacheAdapter = null, array $options = [])