/** * @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); }
public function testGetApiUri() { $api = new JiraApi('http://localhost:8080', '/rest/api/2'); $this->assertEquals('/rest/api/2/issue/', $api->issue()->getApiUrn()); }