You are here

protected function DrupalRemoteTestCase::curlInitialize in SimpleTest 7.2

Set the user agent to Drupal.

Overrides DrupalWebTestCase::curlInitialize

File

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

Class

DrupalRemoteTestCase
Base class used for writing atomic remote tests.

Code

protected function curlInitialize() {
  parent::curlInitialize();
  curl_setopt($this->curlHandle, CURLOPT_USERAGENT, 'Drupal (+http://drupal.org/)');
}