From 17f662cc6ff4f50c30270a23f6679af1b251e82c Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Tue, 14 Apr 2015 22:13:35 +0200 Subject: $escape_method is now private --- tests/test_autoescape/code.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tests/test_autoescape') diff --git a/tests/test_autoescape/code.php b/tests/test_autoescape/code.php index 4f7c998..9f73700 100644 --- a/tests/test_autoescape/code.php +++ b/tests/test_autoescape/code.php @@ -2,13 +2,14 @@ use kch42\ste\STECore; +$ste_initializer = function($sa) { + return new STECore($sa, STECore::ESCAPE_HTML); +}; + function test_func($ste) { $ste->vars['test'] = 'foo"&'; $ste->register_tag('echoarg', function ($ste, $params, $sub) { return $params['echo']; }); - - // Autoescaping enabled by default - $ste->escape_method = STECore::ESCAPE_HTML; } -- cgit v1.2.3-70-g09d2