示例#1
0
 /**
  * @param Node $node
  *
  * @return mixed
  * @throws ClientNotFoundException
  */
 private function testConnection(Node $node)
 {
     return $this->getClient()->test($node->getHost(), $node->getPort());
 }
示例#2
0
 public function testSetGetHost()
 {
     $node = new Node('localhost', 11211);
     $node->setHost('http://not-localhost');
     $this->assertEquals('http://not-localhost', $node->getHost());
 }