public function testDeleteAuthorization() { $h = new HttpRequest("http://www.example.org/api.php"); $h->setRequestMethod("DELETE"); $h->setPathInfo("/authorizations/testclient"); $h->setHeader("Authorization", "Bearer 12345abc"); // FIXME: test with non existing client_id! $response = $this->_api->handleRequest($h); $this->assertEquals(200, $response->getStatusCode()); $this->assertEquals('{"ok":true}', $response->getContent()); }