public function test_getLastErrorMessage() { $this->curl->setOption(CURLOPT_URL, 'foo://bar'); $this->curl->setOption(CURLOPT_RETURNTRANSFER, TRUE); $this->curl->execute(); $this->assertEquals($this->curl->getLastErrorMessage(), 'cURL failed with error #1: Protocol foo not supported or disabled in libcurl'); }