aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Calvo <rubencm@gmail.com>2017-06-27 11:47:25 +0200
committerRubén Calvo <rubencm@gmail.com>2017-07-20 19:55:52 +0200
commitb1755d9daca435934b4a5928211b319abf67a810 (patch)
tree29caac128d8ce5831e1f9ce976277df6b5ef1011 /tests/filesystem
parent[ticket/15253] Add language strings (diff)
downloadphpbb-b1755d9daca435934b4a5928211b319abf67a810.tar.gz
phpbb-b1755d9daca435934b4a5928211b319abf67a810.tar.bz2
phpbb-b1755d9daca435934b4a5928211b319abf67a810.zip
[ticket/15253] Update imports
PHPBB3-15253
Diffstat (limited to 'tests/filesystem')
-rw-r--r--tests/filesystem/helper_clean_path_test.php4
-rw-r--r--tests/filesystem/helper_is_absolute_test.php4
-rw-r--r--tests/filesystem/helper_realpath_test.php6
3 files changed, 10 insertions, 4 deletions
diff --git a/tests/filesystem/helper_clean_path_test.php b/tests/filesystem/helper_clean_path_test.php
index 21a4dfe238..6b723cbc50 100644
--- a/tests/filesystem/helper_clean_path_test.php
+++ b/tests/filesystem/helper_clean_path_test.php
@@ -11,6 +11,8 @@
*
*/
+use phpbb\filesystem\helper as filesystem_helper;
+
class phpbb_filesystem_helper_clean_path_test extends phpbb_test_case
{
@@ -47,6 +49,6 @@ class phpbb_filesystem_helper_clean_path_test extends phpbb_test_case
*/
public function test_clean_path($input, $expected)
{
- $this->assertEquals($expected, \phpbb\filesystem\helper::clean_path($input));
+ $this->assertEquals($expected, filesystem_helper::clean_path($input));
}
}
diff --git a/tests/filesystem/helper_is_absolute_test.php b/tests/filesystem/helper_is_absolute_test.php
index 52b5d9e1b9..6105f48ca0 100644
--- a/tests/filesystem/helper_is_absolute_test.php
+++ b/tests/filesystem/helper_is_absolute_test.php
@@ -11,6 +11,8 @@
*
*/
+ use phpbb\filesystem\helper as filesystem_helper;
+
class phpbb_filesystem_helper_is_absolute_test extends phpbb_test_case
{
@@ -59,6 +61,6 @@ class phpbb_filesystem_helper_is_absolute_test extends phpbb_test_case
*/
public function test_is_absolute($path, $expected)
{
- $this->assertEquals($expected, \phpbb\filesystem\helper::is_absolute_path($path));
+ $this->assertEquals($expected, filesystem_helper::is_absolute_path($path));
}
}
diff --git a/tests/filesystem/helper_realpath_test.php b/tests/filesystem/helper_realpath_test.php
index 754d7631a4..7dde12e82f 100644
--- a/tests/filesystem/helper_realpath_test.php
+++ b/tests/filesystem/helper_realpath_test.php
@@ -11,6 +11,8 @@
*
*/
+ use phpbb\filesystem\helper as filesystem_helper;
+
class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
{
protected static $filesystem_helper_phpbb_own_realpath;
@@ -19,7 +21,7 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
{
parent::setUpBeforeClass();
- self::$filesystem_helper_phpbb_own_realpath = new ReflectionMethod('\phpbb\filesystem\helper', 'phpbb_own_realpath');
+ self::$filesystem_helper_phpbb_own_realpath = new ReflectionMethod('filesystem_helper', 'phpbb_own_realpath');
self::$filesystem_helper_phpbb_own_realpath->setAccessible(true);
}
@@ -49,7 +51,7 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
return array();
}
- $relative_path = \phpbb\filesystem\helper::make_path_relative(__DIR__, getcwd());
+ $relative_path = filesystem_helper::make_path_relative(__DIR__, getcwd());
return array(
array($relative_path, __DIR__),