public function testUpdateApiKeyReturnsCorrectData() { $apiKey = new ApiKey(); $apiKey->setId(1); $apiKey->setName('test'); $this->setMockResponse($this->client, array('api-keys/updateApiKey')); $result = $this->client->updateApiKey($apiKey); $this->assertInternalType('boolean', $result); $this->assertEquals(true, $result); }