public function testGet() { $client = $this->_getClient(); $names = $client->getCluster()->getNodeNames(); $name = reset($names); $node = new Node($name, $client); $info = new NodeInfo($node); $this->assertNull($info->get('os', 'mem', 'total')); // Load os infos $info = new NodeInfo($node, array('os')); $this->assertInternalType('string', $info->get('os', 'mem', 'total')); $this->assertInternalType('array', $info->get('os', 'mem')); $this->assertNull($info->get('test', 'notest', 'notexist')); }