mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-19 08:01:27 +02:00
[ticket/11664] Stop creating php.html file in root path in tests
Also includephp_absolute.html PHPBB3-11664
This commit is contained in:
@@ -39,7 +39,7 @@ class phpbb_template_includephp_test extends phpbb_template_template_test_case
|
||||
$this->assertTrue(phpbb_is_absolute($path_to_php));
|
||||
$template_text = "Path is absolute.\n<!-- INCLUDEPHP $path_to_php -->";
|
||||
|
||||
$cache_dir = dirname($phpbb_root_path . 'cache') . '/';
|
||||
$cache_dir = $phpbb_root_path . 'cache/';
|
||||
$fp = fopen($cache_dir . 'includephp_absolute.html', 'w');
|
||||
fputs($fp, $template_text);
|
||||
fclose($fp);
|
||||
|
@@ -403,7 +403,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||
|
||||
$template_text = '<!-- PHP -->echo "test";<!-- ENDPHP -->';
|
||||
|
||||
$cache_dir = dirname($phpbb_root_path . 'cache') . '/';
|
||||
$cache_dir = $phpbb_root_path . 'cache/';
|
||||
$fp = fopen($cache_dir . 'php.html', 'w');
|
||||
fputs($fp, $template_text);
|
||||
fclose($fp);
|
||||
|
Reference in New Issue
Block a user