How would you go about unit testing a curl implementation?
public function get() { $ch = curl_init($this->request->getUrl()); curl_setopt($c
Do not use curl directly but through a wrapper like PEAR's HTTP_Request2. With it, you have the ability to exchange the curl driver with a mock driver - ideal for unit tests.