/** * @expectedException Exception */ public function testDeleteFailure() { // Create a stub for the SomeClass class. $client = new HTTPClient(); $client->delete('nonexistentsite'); }