示例#1
0
 /**
  * @Then response status code is :code
  *
  * @param int $code
  */
 public function responseStatusCodeIs($code)
 {
     if (!$this->api->getClient()->getLastResponse()) {
         PHPUnit_Framework_Assert::fail();
     }
     $statusCode = $this->api->getClient()->getLastResponse()->getStatusCode();
     PHPUnit_Framework_Assert::assertEquals($code, $statusCode);
 }
示例#2
0
 public function testGetApiUri()
 {
     $api = new JiraApi('http://localhost:8080', '/rest/api/2');
     $this->assertEquals('/rest/api/2/issue/', $api->issue()->getApiUrn());
 }