/** * Returns a Splunk_Context connected to a real Splunk server. */ protected function loginToRealContext() { global $SplunkTests_connectArguments; $context = new Splunk_Context($SplunkTests_connectArguments); $context->login(); return $context; }
/** * Constructs a new service with the specified parameters. * * @see Splunk_Context::__construct() */ public function __construct($args = array()) { parent::__construct($args); }
public function testLoginWithToken() { $context = new Splunk_Context(array('token' => 'Splunk ACEACE')); $this->assertEquals('Splunk ACEACE', $context->getToken()); }