/** * @return bool|mixed */ protected function request() { $options = array(CURLOPT_URL => $this->getInputArgs(), CURLOPT_HTTPHEADER => array('Authorization: Basic ' . F4h_TicketConverter_Config::getInstance()->getAuthorizationString(), 'Content-Type: text/xml'), CURLOPT_RETURNTRANSFER => true); $requester = new F4h_TicketConverter_Jira_Request(); $requester->init($options); $response = $requester->execute(); $requester->close(); return $response; }
/** * @covers F4h_TicketConverter_Jira_Request::init * @dataProvider initProvider */ public function testInit($options) { // // Remove the following lines when you implement this test. // $this->markTestIncomplete( // 'This test has not been implemented yet.' // ); $this->object->init($options); foreach ($options as $key => $value) { $this->assertArrayHasKey($key, $this->readAttribute($this->object, "options")); } }