You are here

protected function DrupalWebTestCase::curlClose in SimpleTest 7.2

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

Close the cURL handler and unset the handler.

1 call 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.

File

./drupal_web_test_case.php, line 1705
Provides DrupalTestCase, DrupalUnitTestCase, and DrupalWebTestCase classes.

Class

DrupalWebTestCase
Test case for typical Drupal tests.

Code

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