/**
  *
  * @expectedException Zend\Cache\Exception\InvalidArgumentException
  */
 public function testSetServersNoMaster()
 {
     $options = new MemcacheDbOptions();
     $options->setServers('localhost');
     $this->assertAttributeEquals(array(array('host' => 'localhost', 'port' => 21201, 'weight' => 1, 'type' => MemcacheDbOptions::TYPE_SLAVE)), 'servers', $options);
 }
 /**
  *
  * @dataProvider getServersDefinitions
  */
 public function testOptionSetServers($servers, $expectedServers)
 {
     $options = new MemcacheDbOptions();
     $options->setServers($servers);
     $this->assertEquals($expectedServers, $options->getServers());
 }