Skip to content

Commit 580fe8e

Browse files
committed
Set REMOTE_ADDR in tests
1 parent e45ad2b commit 580fe8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/Bootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
defined('BASEPATH') OR define('BASEPATH', PROJECT_BASE.'system/');
1212
defined('APPPATH') OR define('APPPATH', PROJECT_BASE.'application/');
1313
defined('VIEWPATH') OR define('VIEWPATH', PROJECT_BASE.'');
14+
isset($_SERVER['REMOTE_ADDR']) OR $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
1415

1516
// Get vfsStream either via PEAR or composer
1617
foreach (explode(PATH_SEPARATOR, get_include_path()) as $path)

0 commit comments

Comments
 (0)