aboutsummaryrefslogtreecommitdiffstats
path: root/tests/request/request_var_test.php
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2011-01-31 12:58:18 +0100
committerErik Frèrejean <erikfrerejean@phpbb.com>2011-01-31 12:58:18 +0100
commit14891cdf4ecf0e3ee164962be6685b8563f37a15 (patch)
tree8877caadc2d6bff92677fd059bd36e53fcd8989f /tests/request/request_var_test.php
parent01fb5532cf27090ee04a8ad4f14bc712dc2f115b (diff)
downloadforums-14891cdf4ecf0e3ee164962be6685b8563f37a15.tar
forums-14891cdf4ecf0e3ee164962be6685b8563f37a15.tar.gz
forums-14891cdf4ecf0e3ee164962be6685b8563f37a15.tar.bz2
forums-14891cdf4ecf0e3ee164962be6685b8563f37a15.tar.xz
forums-14891cdf4ecf0e3ee164962be6685b8563f37a15.zip
[ticket/10011] Tests don't work on PHP < 5.3
Due to the usage of `__DIR__` for the file includes the tests can't be ran on systems with PHP < 5.3. Replace all occurances of `__DIR__` with `dirname(__FILE__)`. PHPBB3-10011
Diffstat (limited to 'tests/request/request_var_test.php')
-rw-r--r--tests/request/request_var_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/request/request_var_test.php b/tests/request/request_var_test.php
index 0901b43920..fa17b1909f 100644
--- a/tests/request/request_var_test.php
+++ b/tests/request/request_var_test.php
@@ -7,8 +7,8 @@
*
*/
-require_once __DIR__ . '/../../phpBB/includes/functions.php';
-require_once __DIR__ . '/../../phpBB/includes/utf/utf_tools.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/utf/utf_tools.php';
class phpbb_request_request_var_test extends phpbb_test_case
{