Replaced preg_replace('.../e') with preg_replace_callback
Fix PartialHelperTest
Replaced create_function with closures