/** * @covers Robo47_Curl::getError * @covers Robo47_Curl::getErrno */ public function testGetErrorGetErrno() { $this->markTestIncomplete('testing doesnt work right'); $curl = new Robo47_Curl('https://example.com', true); $curl->setOption(CURLOPT_TIMEOUT, 1); $this->assertEquals('', $curl->getError()); $this->assertEquals(0, $curl->getErrno()); $curl->exec(); $this->assertEquals('couldn\'t connect to host', $curl->getError()); $this->assertEquals(CURLE_COULDNT_CONNECT, $curl->getErrno()); }