public function testWritingAndNotConnectedWithCurlHandleThrowsException() { $adapter = new Adapter\Curl(); $this->setExpectedException('Zend\\Http\\Client\\Adapter\\Exception\\RuntimeException', 'Trying to write but we are not connected'); $adapter->write("GET", "someUri"); }