Smarty Unit Test - Test case failure - Package Smarty-2.6.18.tar.gz

View: New views
2 Messages — Rating Filter:   Alert me  

Smarty Unit Test - Test case failure - Package Smarty-2.6.18.tar.gz

by Ian Short :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Does anyone else see the following test case failure when running the Smarty Unit test on package Smarty-2.6.18.tar.gz?
 
======================================================================================
Test case failure
TestCase SmartyTest->test_core_is_secure_function_smarty_var_const_not_allowed() failed: expected 2, actual 512 in C:\htdocs\warlock_ste\Smarty\unit_test\test_cases.php:444
======================================================================================
 
Note full listing of results are in the attachment.
 
Regards
 
Ian Short
 

TestCase SmartyTest->test_template_dir_exists() passed
TestCase SmartyTest->test_template_dir_is_dir() passed
TestCase SmartyTest->test_template_dir_is_readable() passed
TestCase SmartyTest->test_config_dir_exists() passed
TestCase SmartyTest->test_config_dir_is_dir() passed
TestCase SmartyTest->test_config_dir_is_readable() passed
TestCase SmartyTest->test_compile_dir_exists() passed
TestCase SmartyTest->test_compile_dir_is_dir() passed
TestCase SmartyTest->test_compile_dir_is_readable() passed
TestCase SmartyTest->test_compile_dir_is_writable() passed
TestCase SmartyTest->test_cache_dir_exists() passed
TestCase SmartyTest->test_cache_dir_is_dir() passed
TestCase SmartyTest->test_cache_dir_is_readable() passed
TestCase SmartyTest->test_cache_dir_is_writable() passed
TestCase SmartyTest->test_assign_method_exists() passed
TestCase SmartyTest->test_assign_by_ref_method_exists() passed
TestCase SmartyTest->test_append_method_exists() passed
TestCase SmartyTest->test_append_by_ref_method_exists() passed
TestCase SmartyTest->test_clear_assign_method_exists() passed
TestCase SmartyTest->test_register_function_method_exists() passed
TestCase SmartyTest->test_unregister_function_method_exists() passed
TestCase SmartyTest->test_register_object_method_exists() passed
TestCase SmartyTest->test_unregister_object_method_exists() passed
TestCase SmartyTest->test_register_block_method_exists() passed
TestCase SmartyTest->test_unregister_block_method_exists() passed
TestCase SmartyTest->test_register_compiler_function_method_exists() passed
TestCase SmartyTest->test_unregister_compiler_function_method_exists() passed
TestCase SmartyTest->test_register_modifier_method_exists() passed
TestCase SmartyTest->test_unregister_modifier_method_exists() passed
TestCase SmartyTest->test_register_resource_method_exists() passed
TestCase SmartyTest->test_unregister_resource_method_exists() passed
TestCase SmartyTest->test_register_prefilter_method_exists() passed
TestCase SmartyTest->test_unregister_prefilter_method_exists() passed
TestCase SmartyTest->test_register_postfilter_method_exists() passed
TestCase SmartyTest->test_unregister_postfilter_method_exists() passed
TestCase SmartyTest->test_register_outputfilter_method_exists() passed
TestCase SmartyTest->test_unregister_outputfilter_method_exists() passed
TestCase SmartyTest->test_load_filter_method_exists() passed
TestCase SmartyTest->test_clear_cache_method_exists() passed
TestCase SmartyTest->test_clear_all_cache_method_exists() passed
TestCase SmartyTest->test_is_cached_method_exists() passed
TestCase SmartyTest->test_clear_all_assign_method_exists() passed
TestCase SmartyTest->test_clear_compiled_tpl_method_exists() passed
TestCase SmartyTest->test_template_exists_method_exists() passed
TestCase SmartyTest->test_get_template_vars_method_exists() passed
TestCase SmartyTest->test_get_config_vars_method_exists() passed
TestCase SmartyTest->test_trigger_error_method_exists() passed
TestCase SmartyTest->test_display_method_exists() passed
TestCase SmartyTest->test_fetch_method_exists() passed
TestCase SmartyTest->test_config_load_method_exists() passed
TestCase SmartyTest->test_get_registered_object_method_exists() passed
TestCase SmartyTest->test_clear_config_method_exists() passed
TestCase SmartyTest->test_get_plugin_filepath() passed
TestCase SmartyTest->test_clear_compiled_tpl() passed
TestCase SmartyTest->test_call_to_display() passed
TestCase SmartyTest->test_call_to_fetch() passed
TestCase SmartyTest->test_assign_var() passed
TestCase SmartyTest->test_parse_obj_meth() passed
TestCase SmartyTest->test_parse_math() passed
TestCase SmartyTest->test_config_load_globals_double_quotes() passed
TestCase SmartyTest->test_config_load_globals_single_quotes() passed
TestCase SmartyTest->test_escape_modifier_get_plugins_filepath() passed
TestCase SmartyTest->test_escape_modifier_include_file() passed
TestCase SmartyTest->test_escape_modifier_function_exists() passed
TestCase SmartyTest->test_escape_modifier_escape_default() passed
TestCase SmartyTest->test_escape_modifier_escape_html() passed
TestCase SmartyTest->test_escape_modifier_escape_htmlall() passed
TestCase SmartyTest->test_escape_modifier_escape_url() passed
TestCase SmartyTest->test_escape_modifier_escape_quotes() passed
TestCase SmartyTest->test_escape_modifier_escape_hex() passed
TestCase SmartyTest->test_escape_modifier_escape_hexentity() passed
TestCase SmartyTest->test_escape_modifier_escape_javascript() passed
TestCase SmartyTest->test_core_is_secure_file_exists() passed
TestCase SmartyTest->test_core_is_secure_file_include() passed
TestCase SmartyTest->test_core_is_secure_function_exists() passed
TestCase SmartyTest->test_core_is_secure_function_is_secure_true() passed
TestCase SmartyTest->test_core_is_secure_function_is_secure_false() passed
TestCase SmartyTest->test_core_is_secure_function_smarty_var_const() passed
TestCase SmartyTest->test_core_is_secure_function_smarty_var_const_allowed() passed
TestCase SmartyTest->test_core_is_secure_function_smarty_var_const_not_allowed() failed: expected 2, actual 512 in C:\htdocs\warlock_ste\Smarty\unit_test\test_cases.php:444


--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Smarty Unit Test - Test case failure - Package Smarty-2.6.18.tar.gz

by messju mohr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Oct 25, 2007 at 05:14:24AM +0100, Ian Short wrote:
> Does anyone else see the following test case failure when running the Smarty Unit test on package Smarty-2.6.18.tar.gz?

I got this kind of failure when I did not configure date.timezone in
my php.ini.  A newer php does throw an E_STRICT then - overriding the
expected E_USER_WARNING.

If this does not fix your case, store all error info in the error
handler ($this->error = func_get_args()) and dump this error info from
test_core_is_secure_function_smarty_var_const_not_allowed() in
test_cases.php to see, what causes the unexpected 2(== E_WARNING).

greetings
messju
 

> ======================================================================================
> Test case failure
> TestCase SmartyTest->test_core_is_secure_function_smarty_var_const_not_allowed() failed: expected 2, actual 512 in C:\htdocs\warlock_ste\Smarty\unit_test\test_cases.php:444
> ======================================================================================
>
> Note full listing of results are in the attachment.
>
> Regards
>
> Ian Short

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php