summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_test/core/TestRequest.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/_test/core/TestRequest.php b/_test/core/TestRequest.php
index 9047f7e88..66760b1e0 100644
--- a/_test/core/TestRequest.php
+++ b/_test/core/TestRequest.php
@@ -46,6 +46,11 @@ class TestRequest {
$post = $_POST;
$request = $_REQUEST;
+ // import all defined globals into the function scope
+ foreach(array_keys($GLOBALS) as $glb){
+ global $$glb;
+ }
+
// fake environment
global $default_server_vars;
$_SERVER = array_merge($default_server_vars, $this->server);
@@ -58,9 +63,6 @@ class TestRequest {
global $output_buffer;
$output_buffer = '';
- // make globals available as were in a function context here FIXME: any others needed?
- global $INPUT;
-
// now execute dokuwiki and grep the output
header_remove();
ob_start('ob_start_callback');