You are here

protected function DrupalWebTestCase::curlClose in SimpleTest 7

Same name and namespace in other branches
  1. 6.2 drupal_web_test_case.php \DrupalWebTestCase::curlClose()
  2. 7.2 drupal_web_test_case.php \DrupalWebTestCase::curlClose()

Close the cURL handler and unset the handler.

3 calls to DrupalWebTestCase::curlClose()
DrupalWebTestCase::tearDown in ./drupal_web_test_case.php
Delete created files and temporary files directory, delete the tables created by setUp(), and reset the database prefix.
SessionHttpsTestCase::testHttpsSession in tests/session.test
SessionTestCase::sessionReset in tests/session.test
Reset the cookie file so that it refers to the specified user.

File

./drupal_web_test_case.php, line 1337

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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