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