public function get($url) { $url = $this->prepareUrl($url); curl_setopt($this->_ch, CURLOPT_URL, $url); $response = $this->exec(); return $this->checkResponse($response); }
/** * @expectedException Exception */ public function testGetFailure() { // Create a stub for the SomeClass class. $client = new HTTPClient(); $client->get('nonexistentsite'); }