diff --git a/tests/template/template_test.php b/tests/template/template_test.php index cb9563150a..e530b0f4e6 100644 --- a/tests/template/template_test.php +++ b/tests/template/template_test.php @@ -373,8 +373,9 @@ class phpbb_template_template_test extends phpbb_test_case { } - // For debugging - if (self::PRESERVE_CACHE) + // For debugging. + // When testing eval path the cache file may not exist. + if (self::PRESERVE_CACHE && file_exists($cache_file)) { copy($cache_file, str_replace('ctpl_', 'tests_ctpl_', $cache_file)); }