protected function WebTestBase::curlClose

Close the cURL handler and unset the handler.

5 calls to WebTestBase::curlClose()
PollVoteCheckHostnameTest::testHostnamePollVote in drupal/core/modules/poll/lib/Drupal/poll/Tests/PollVoteCheckHostnameTest.php
Checks that anonymous users with the same IP address can only vote once.
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 1026
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);
  }
}