Check if the test is being run from inside a CURL request.
File
- drupal/modules/simpletest/simpletest.test, line 316
- Tests for simpletest.module.
Class
- SimpleTestFunctionalTest
- @file
Tests for simpletest.module.
Code
function inCURL() {
return (bool) drupal_valid_test_ua();
}