mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 21:38:54 +00:00
[ticket/15253] Fix test for <php7.0
PHPBB3-15253
This commit is contained in:
parent
9ff25b5970
commit
425fb5b09d
1 changed files with 9 additions and 7 deletions
|
@ -46,9 +46,10 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
|
|||
{
|
||||
if (!function_exists('getcwd'))
|
||||
{
|
||||
return array();
|
||||
yield [];
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
$relative_path = filesystem_helper::make_path_relative(__DIR__, getcwd());
|
||||
|
||||
yield [$relative_path, __DIR__];
|
||||
|
@ -57,6 +58,7 @@ class phpbb_filesystem_helper_realpath_test extends phpbb_test_case
|
|||
|
||||
yield [$relative_path . 'helper_realpath_test.php', __FILE__];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider realpath_resolve_absolute_without_symlinks_data
|
||||
|
|
Loading…
Add table
Reference in a new issue