function SimpleTestFunctionalTest::inCURL

7.x simpletest.test SimpleTestFunctionalTest::inCURL()

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

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

File

drupal-7.x/modules/simpletest/simpletest.test, line 316
Tests for simpletest.module.

Class

SimpleTestFunctionalTest

Code

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