Skip to content

Commit 6caf1c9

Browse files
committed
prefilled $_SERVER to avoid notices in CI
1 parent 8abcebb commit 6caf1c9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/autoload.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@
88
function getallheaders(){
99
return [];
1010
}
11-
}
11+
}
12+
13+
// following $_SERVER paramaeters are prefilled to avoid notices in CI Environment
14+
$_SERVER['REMOTE_ADDR'] = 'localhost';
15+
$_SERVER['REQUEST_URI'] = '/tests';
16+
$_SERVER['PLATFORM_APPLICATION_PATH '] = '/tests';
17+
$_SERVER['HTTP_HOST'] = 'localhost';
18+
$_SERVER['REQUEST_METHOD'] = 'GET';

0 commit comments

Comments
 (0)