public function testInvalidRequestMethodForRevoke() { $server = $this->getTestServer(); $request = new TestRequest(); $request->setQuery(array('token_type_hint' => 'access_token')); $server->handleRevokeRequest($request, $response = new Response()); $this->assertTrue($response instanceof Response); $this->assertEquals(405, $response->getStatusCode(), var_export($response, 1)); $this->assertEquals($response->getParameter('error'), 'invalid_request'); $this->assertEquals($response->getParameter('error_description'), 'The request method must be POST when revoking an access token'); }