public function testResolveWithoutMatchingOptions() { $options = array('hello' => 'world'); $availableOptions = array('foo', 'baz'); $result = OptionsResolver::resolve($options, $availableOptions); $this->assertSame(array(), $result); }
public function renew($sessionId, array $options = array()) { $params = array('query' => OptionsResolver::resolve($options, array('dc'))); return $this->client->put('/v1/session/renew/' . $sessionId, $params); }
public function delete($key, array $options = array()) { $params = array('query' => OptionsResolver::resolve($options, array('dc', 'recurse'))); return $this->client->delete('v1/kv/' . $key, $params); }
public function service($service, array $options = array()) { $params = array('query' => OptionsResolver::resolve($options, array('dc', 'tag'))); return $this->client->get('/v1/catalog/service/' . $service, $params); }
public function failCheck($checkId, array $options = array()) { $params = array('query' => OptionsResolver::resolve($options, array('note'))); return $this->client->put('/v1/agent/check/fail/' . $checkId, $params); }