protected function DrupalWebTestCase::curlClose

7.x drupal_web_test_case.php protected DrupalWebTestCase::curlClose()

Close the cURL handler and unset the handler.

5 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.
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::testHttpsSession in drupal/modules/simpletest/tests/session.test
SessionTestCase::sessionReset in drupal/modules/simpletest/tests/session.test
Reset the cookie file so that it refers to the specified user.
SessionTestCase::testEmptySessionID in drupal/modules/simpletest/tests/session.test
Test that empty session IDs are not allowed.

File

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

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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