diff options
| author | Nils Adermann <naderman@naderman.de> | 2010-03-13 11:28:41 +0100 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2010-09-17 14:03:47 +0200 |
| commit | 0ae7df8a51129f2ece86f959e2e155d988feb081 (patch) | |
| tree | 83d3e88e835db37e517c3999823b3c314abfe052 /phpBB/install/index.php | |
| parent | ea919ad8b276c78207ec33d1fc34f1f0ef15bc0d (diff) | |
| download | forums-0ae7df8a51129f2ece86f959e2e155d988feb081.tar forums-0ae7df8a51129f2ece86f959e2e155d988feb081.tar.gz forums-0ae7df8a51129f2ece86f959e2e155d988feb081.tar.bz2 forums-0ae7df8a51129f2ece86f959e2e155d988feb081.tar.xz forums-0ae7df8a51129f2ece86f959e2e155d988feb081.zip | |
[feature/request-class] Request class test now uses a type cast helper mock.
Removed the dependency of the request class test on having an actual
phpbb_type_cast_helper instance, by replacing it with an object mocking
the phpbb_type_cast_helper_interface.
PHPBB3-9716
Diffstat (limited to 'phpBB/install/index.php')
| -rw-r--r-- | phpBB/install/index.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/install/index.php b/phpBB/install/index.php index 3e4331cde5..5862e2e8d2 100644 --- a/phpBB/install/index.php +++ b/phpBB/install/index.php @@ -171,10 +171,11 @@ require($phpbb_root_path . 'includes/functions_install.' . $phpEx); $class_loader = new phpbb_class_loader($phpbb_root_path, '.' . $phpEx); $class_loader->register(); -$request = new phpbb_request(); + +$request = new phpbb_request(new phpbb_type_cast_helper()); // make sure request_var uses this request instance -request_var($request, 0); // "dependency injection" for a function +request_var('', 0, false, false, $request); // "dependency injection" for a function // Try and load an appropriate language if required $language = basename(request_var('language', '')); |
