aboutsummaryrefslogtreecommitdiffstats
path: root/tests/template/template.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template/template.php')
-rw-r--r--tests/template/template.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/template/template.php b/tests/template/template.php
index 145fe8de61..9436ab2d98 100644
--- a/tests/template/template.php
+++ b/tests/template/template.php
@@ -17,20 +17,12 @@ class phpbb_template_template_test extends phpbb_test_case
private $template_path;
// Keep the contents of the cache for debugging?
- const PRESERVE_CACHE = true;
+ const PRESERVE_CACHE = false;
private function display($handle)
{
- // allow the templates to throw notices
- $error_level = error_reporting();
- error_reporting($error_level & ~E_NOTICE);
-
ob_start();
$this->assertTrue($this->template->display($handle, false));
-
- // reset error level
- error_reporting($error_level);
-
return self::trim_template_result(ob_get_clean());
}