From a073234fe38cc094b7e5bc73ce001e5ee1fdcabb Mon Sep 17 00:00:00 2001 From: uwetews Date: Sun, 14 Feb 2016 03:04:50 +0100 Subject: [PATCH] Add test for new {make_nocache} tag --- .../__shared/PHPunitplugins/function.checkvar.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/UnitTests/__shared/PHPunitplugins/function.checkvar.php b/tests/UnitTests/__shared/PHPunitplugins/function.checkvar.php index 762aaa0f..55fa76fc 100644 --- a/tests/UnitTests/__shared/PHPunitplugins/function.checkvar.php +++ b/tests/UnitTests/__shared/PHPunitplugins/function.checkvar.php @@ -26,11 +26,11 @@ function smarty_function_checkvar($params, $template) while ($ptr) { if (in_array('template', $types) && $ptr instanceof Smarty_Internal_Template) { $output .= "#{$ptr->source->name}:\${$var} ="; - $output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : 'null'; + $output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : '>unassigned<'; $ptr = $ptr->parent; } elseif (in_array('data', $types) && $ptr instanceof Smarty_Data) { $output .= "#data:\${$var} ="; - $output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : 'null'; + $output .= isset($ptr->tpl_vars[$var]) ? preg_replace('/\s/', '', var_export($ptr->tpl_vars[$var]->value, true)) : '>unassigned<'; $ptr = $ptr->parent; } else { $ptr = null; @@ -39,12 +39,12 @@ function smarty_function_checkvar($params, $template) if (in_array('smarty', $types)) { $output .= "#Smarty:\${$var} ="; $output .= isset($template->smarty->tpl_vars[ $var ]) ? - preg_replace('/\s/', '', var_export($template->smarty->tpl_vars[ $var ]->value, true)) : 'null'; + preg_replace('/\s/', '', var_export($template->smarty->tpl_vars[ $var ]->value, true)) : '>unassigned<'; } if (in_array('global', $types)) { $output .= "#global:\${$var} ="; $output .= isset(Smarty::$global_tpl_vars[ $var ]) ? - preg_replace('/\s/', '', var_export(Smarty::$global_tpl_vars[ $var ]->value, true)) : 'null'; + preg_replace('/\s/', '', var_export(Smarty::$global_tpl_vars[ $var ]->value, true)) : '>unassigned<'; } return $output; }