/** * Default constructor for JiraIntegration */ public function __construct() { $this->authentication = Authentication::getInstance(); }
/** * Applies settings to the Authentication object * @param string $url The URL for Jira API * @param string $credentials The base64 encoded username:password pair */ private function setAuthentication($url, $auth) { $this->auth = Authentication::getInstance($url); $this->auth->setApiAuth($auth); }
public function setUp() { $this->auth = Authentication::getInstance('http://test.jira', 'user', 'pass'); }