You are here

protected function WebTestBase::curlClose in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::curlClose()

Close the cURL handler and unset the handler.

9 calls to WebTestBase::curlClose()
AuthTest::testRead in core/modules/rest/src/Tests/AuthTest.php
Tests reading from an authenticated resource.
BasicAuthTest::testBasicAuth in core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
Test http basic authentication.
BasicAuthTest::testLocale in core/modules/basic_auth/src/Tests/Authentication/BasicAuthTest.php
Tests compatibility with locale/UI translation.
ResourceTest::testAuthentication in core/modules/rest/src/Tests/ResourceTest.php
Tests that a resource without authentication cannot be enabled.
ResourceTest::testFormats in core/modules/rest/src/Tests/ResourceTest.php
Tests that a resource without formats cannot be enabled.

... See full list

File

core/modules/simpletest/src/WebTestBase.php, line 1482
Contains \Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

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