Vuzit_Service::setPublicKey('does not exist'); $doc = Vuzit_Document::findById($show_id); } catch (Vuzit_ClientException $ex) { $exception = $ex; } break; case "doc_does_not_exist": try { $doc = Vuzit_Document::findById("doesnotexistblah"); } catch (Vuzit_ClientException $ex) { $exception = $ex; } break; case "invalid_signature": try { Vuzit_Service::setPrivateKey('not_a_valid_key'); $doc = Vuzit_Document::findById($show_id); } catch (Vuzit_ClientException $ex) { $exception = $ex; } break; } ?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> <head> <title>Error Tests</title> </head> <body onload=""> <h2> Error tests
$private_key = get("prk"); if($public_key == null || $private_key == null) { echo "Please provide the public (puk) and private (prk) keys"; return; } $service_url = get("su"); if($service_url != null) { Vuzit_Service::setServiceUrl($service_url); } Vuzit_Service::setPublicKey($public_key); Vuzit_Service::setPrivateKey($private_key); Vuzit_Service::setUserAgent("Vuzit Test Suite"); // Grab the command and execute switch(get("c")) { case "load": load_command(); break; case "upload": upload_command(); break; case "delete": delete_command(); break; case "event":