protected function WebTestBase::curlClose

Close the cURL handler and unset the handler.

4 calls to WebTestBase::curlClose()
SessionHttpsTest::testHttpsSession in drupal/core/modules/system/lib/Drupal/system/Tests/Session/SessionHttpsTest.php
SessionTest::sessionReset in drupal/core/modules/system/lib/Drupal/system/Tests/Session/SessionTest.php
Reset the cookie file so that it refers to the specified user.
SessionTest::testEmptySessionID in drupal/core/modules/system/lib/Drupal/system/Tests/Session/SessionTest.php
Test that empty session IDs are not allowed.
WebTestBase::tearDown in drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php, line 1176
Definition of Drupal\simpletest\WebTestBase.

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);
  }
}