function WebTestBase::curlClose

Close the cURL handler and unset the handler.

1 call to WebTestBase::curlClose()
WebTestBase::tearDown in core/modules/simpletest/src/WebTestBase.php
Cleans up after testing.

File

core/modules/simpletest/src/WebTestBase.php, line 746

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function curlClose() {
    if (isset($this->curlHandle)) {
        curl_close($this->curlHandle);
        unset($this->curlHandle);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.