aboutsummaryrefslogtreecommitdiffstats
path: root/tests/security
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/security
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/security')
-rw-r--r--tests/security/extract_current_page_test.php6
-rw-r--r--tests/security/redirect_test.php6
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/security/extract_current_page_test.php b/tests/security/extract_current_page_test.php
index ff0ab4d1bb..71c7a3a397 100644
--- a/tests/security/extract_current_page_test.php
+++ b/tests/security/extract_current_page_test.php
@@ -7,10 +7,10 @@
*
*/
-require_once __DIR__ . '/base.php';
+require_once dirname(__FILE__) . '/base.php';
-require_once __DIR__ . '/../../phpBB/includes/functions.php';
-require_once __DIR__ . '/../../phpBB/includes/session.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/session.php';
class phpbb_security_extract_current_page_test extends phpbb_security_test_base
{
diff --git a/tests/security/redirect_test.php b/tests/security/redirect_test.php
index c53414e7df..70ba8527b1 100644
--- a/tests/security/redirect_test.php
+++ b/tests/security/redirect_test.php
@@ -7,10 +7,10 @@
*
*/
-require_once __DIR__ . '/base.php';
+require_once dirname(__FILE__) . '/base.php';
-require_once __DIR__ . '/../../phpBB/includes/functions.php';
-require_once __DIR__ . '/../../phpBB/includes/session.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/session.php';
class phpbb_security_redirect_test extends phpbb_security_test_base
{