You are here

function dummy in Coder 8.3

Same name and namespace in other branches
  1. 8.3.x tests/Drupal/Semantics/RemoteAddressUnitTest.inc \dummy()

File

tests/Drupal/Semantics/RemoteAddressUnitTest.inc, line 14
Drupal.Semantics.RemoteAddress sniff tests.

Code

function dummy() {

  // Pass - Drupal.Semantics.RemoteAddress.RemoteAddress.
  $_SERVER['REMOTE_ADDR'] = '127.0.0.1';

  // Error - Drupal.Semantics.RemoteAddress.RemoteAddress.
  $remote_address = $_SERVER['REMOTE_ADDR'];
}