mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/15253] Fix test for <php7.0
PHPBB3-15253
This commit is contained in:
@@ -46,16 +46,18 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
|
|||||||
{
|
{
|
||||||
if (!function_exists('getcwd'))
|
if (!function_exists('getcwd'))
|
||||||
{
|
{
|
||||||
return array();
|
yield [];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$relative_path = filesystem_helper::make_path_relative(__DIR__, getcwd());
|
||||||
|
|
||||||
$relative_path = filesystem_helper::make_path_relative(__DIR__, getcwd());
|
yield [$relative_path, __DIR__];
|
||||||
|
yield [$relative_path . '../filesystem/../filesystem', __DIR__];
|
||||||
|
yield [$relative_path . '././', __DIR__];
|
||||||
|
|
||||||
yield [$relative_path, __DIR__];
|
yield [$relative_path . 'helper_realpath_test.php', __FILE__];
|
||||||
yield [$relative_path . '../filesystem/../filesystem', __DIR__];
|
}
|
||||||
yield [$relative_path . '././', __DIR__];
|
|
||||||
|
|
||||||
yield [$relative_path . 'helper_realpath_test.php', __FILE__];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user