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