aboutsummaryrefslogtreecommitdiffstats
path: root/tests/filesystem
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-09-12 10:25:49 -0500
committerNathan Guse <nathaniel.guse@gmail.com>2013-09-12 10:25:49 -0500
commitb06c8a80d15c52dd53b12065d5e6e9d56f203ceb (patch)
tree15cb3142b27632f60b0ff9c9159412f69a0765ce /tests/filesystem
parent3a4efa79592616ac099e95d07e9aed52bc5a19a3 (diff)
downloadforums-b06c8a80d15c52dd53b12065d5e6e9d56f203ceb.tar
forums-b06c8a80d15c52dd53b12065d5e6e9d56f203ceb.tar.gz
forums-b06c8a80d15c52dd53b12065d5e6e9d56f203ceb.tar.bz2
forums-b06c8a80d15c52dd53b12065d5e6e9d56f203ceb.tar.xz
forums-b06c8a80d15c52dd53b12065d5e6e9d56f203ceb.zip
[ticket/11832] Fix the web path corrections
Add some real life examples to test PHPBB3-11832
Diffstat (limited to 'tests/filesystem')
-rw-r--r--tests/filesystem/web_root_path_test.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/filesystem/web_root_path_test.php b/tests/filesystem/web_root_path_test.php
index badc2fab58..8e0ba278e0 100644
--- a/tests/filesystem/web_root_path_test.php
+++ b/tests/filesystem/web_root_path_test.php
@@ -62,7 +62,7 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case
),
array(
$this->phpbb_root_path . 'test.php',
- $this->phpbb_root_path . 'test.php',
+ $this->phpbb_root_path . '../test.php',
'//',
),
array(
@@ -75,7 +75,16 @@ class phpbb_filesystem_web_root_path_test extends phpbb_test_case
array(
$this->phpbb_root_path . 'test.php',
$this->phpbb_root_path . '../../test.php',
- '////',
+ '/foo/template',
+ '/phpbb3-fork/phpBB/app.php/foo/template',
+ '/phpbb3-fork/phpBB/app.php',
+ ),
+ array(
+ $this->phpbb_root_path . 'test.php',
+ $this->phpbb_root_path . '../test.php',
+ '/foo/template',
+ '/phpbb3-fork/phpBB/foo/template',
+ '/phpbb3-fork/phpBB/app.php',
),
);
}