You are here

protected function DrupalWebTestCase::curlClose in Drupal 7

Close the cURL handler and unset the handler.

7 calls to DrupalWebTestCase::curlClose()
DrupalWebTestCase::tearDown in 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 modules/file/tests/file.test
Tests file access for file uploaded to a private node.
PollVoteCheckHostname::testHostnamePollVote in 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 modules/simpletest/tests/session.test
Tests that empty session IDs do not cause unrelated sessions to load.
SessionHttpsTestCase::testHttpsSession in modules/simpletest/tests/session.test

... See full list

File

modules/simpletest/drupal_web_test_case.php, line 2153

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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