aboutsummaryrefslogtreecommitdiffstats
path: root/tests/network
diff options
context:
space:
mode:
authorErik Frèrejean <erikfrerejean@phpbb.com>2011-01-31 13:54:55 +0100
committerErik Frèrejean <erikfrerejean@phpbb.com>2011-01-31 14:02:30 +0100
commit2e5421230968170477b7fbadd58c01b26ade0590 (patch)
tree9fb11cc9cd70ec6becc51391a160de4057e42a49 /tests/network
parentd06657c99573e3975e735e8cb7f8cc5ccb510851 (diff)
downloadforums-2e5421230968170477b7fbadd58c01b26ade0590.tar
forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.gz
forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.bz2
forums-2e5421230968170477b7fbadd58c01b26ade0590.tar.xz
forums-2e5421230968170477b7fbadd58c01b26ade0590.zip
[ticket/10011] Tests can't be ran on PHP < 5.3
Apply the `__DIR__` fix to some remaining Ascraeus tests PHPBB3-10011
Diffstat (limited to 'tests/network')
-rw-r--r--tests/network/inet_ntop_pton_test.php2
-rw-r--r--tests/network/ip_normalise_test.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/network/inet_ntop_pton_test.php b/tests/network/inet_ntop_pton_test.php
index 7d4f44aaca..d3332f20c0 100644
--- a/tests/network/inet_ntop_pton_test.php
+++ b/tests/network/inet_ntop_pton_test.php
@@ -7,7 +7,7 @@
*
*/
-require_once __DIR__ . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
class phpbb_network_inet_ntop_pton_test extends phpbb_test_case
{
diff --git a/tests/network/ip_normalise_test.php b/tests/network/ip_normalise_test.php
index c10ea6e088..dce0774d85 100644
--- a/tests/network/ip_normalise_test.php
+++ b/tests/network/ip_normalise_test.php
@@ -7,7 +7,7 @@
*
*/
-require_once __DIR__ . '/../../phpBB/includes/functions.php';
+require_once dirname(__FILE__) . '/../../phpBB/includes/functions.php';
class phpbb_network_ip_normalise_test extends phpbb_test_case
{