function SimpleTestTest::inCURL

Check if the test is being run from inside a CURL request.

4 calls to SimpleTestTest::inCURL()
SimpleTestTest::setUp in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Sets up a Drupal site for running functional and integration tests.
SimpleTestTest::testInternalBrowser in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Test the internal browsers functionality.
SimpleTestTest::testUserAgentValidation in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Test validation of the User-Agent header we use to perform test requests.
SimpleTestTest::testWebTestRunner in drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php
Make sure that tests selected through the web interface are run and that the results are displayed correctly.

File

drupal/core/modules/simpletest/lib/Drupal/simpletest/Tests/SimpleTestTest.php, line 334
Definition of Drupal\simpletest\Tests\SimpleTestTest.

Class

SimpleTestTest

Namespace

Drupal\simpletest\Tests

Code

function inCURL() {
  return (bool) drupal_valid_test_ua();
}