protected function DrupalWebTestCase::curlClose

Close the cURL handler and unset the handler.

7 calls to DrupalWebTestCase::curlClose()
DrupalWebTestCase::tearDown in drupal/modules/simpletest/drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
FilePrivateTestCase::testPrivateFile in drupal/modules/file/tests/file.test
Tests file access for file uploaded to a private node.
PollVoteCheckHostname::testHostnamePollVote in drupal/modules/poll/poll.test
Check that anonymous users with same ip cannot vote on poll more than once unless user is logged in.
SessionHttpsTestCase::testEmptySessionId in drupal/modules/simpletest/tests/session.test
Tests that empty session IDs do not cause unrelated sessions to load.
SessionHttpsTestCase::testHttpsSession in drupal/modules/simpletest/tests/session.test

... See full list

File

drupal/modules/simpletest/drupal_web_test_case.php, line 1932

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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