Exemplo n.º 1
0
 /**
  * Default constructor for JiraIntegration
  */
 public function __construct()
 {
     $this->authentication = Authentication::getInstance();
 }
Exemplo n.º 2
0
 /**
  * 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');
 }