mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'EXreaction/ticket/11664' into develop
* EXreaction/ticket/11664: [ticket/11664] Stop creating php.html file in root path in tests
This commit is contained in:
commit
e9eeff8b38
2 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ class phpbb_template_includephp_test extends phpbb_template_template_test_case
|
||||||
$this->assertTrue(phpbb_is_absolute($path_to_php));
|
$this->assertTrue(phpbb_is_absolute($path_to_php));
|
||||||
$template_text = "Path is absolute.\n<!-- INCLUDEPHP $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');
|
$fp = fopen($cache_dir . 'includephp_absolute.html', 'w');
|
||||||
fputs($fp, $template_text);
|
fputs($fp, $template_text);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
|
@ -403,7 +403,7 @@ class phpbb_template_template_test extends phpbb_template_template_test_case
|
||||||
|
|
||||||
$template_text = '<!-- PHP -->echo "test";<!-- ENDPHP -->';
|
$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');
|
$fp = fopen($cache_dir . 'php.html', 'w');
|
||||||
fputs($fp, $template_text);
|
fputs($fp, $template_text);
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
Loading…
Add table
Reference in a new issue