/** * @expectedException JsonRPC\AccessDeniedException */ public function testAccessNotAllowedError() { $client = new Client('http://localhost/'); $client->handleHttpErrors(array('HTTP/1.0 301 Moved Permantenly', 'Connection: close', 'HTTP/1.0 401 Unauthorized')); }