diff options
author | Kevin Chabowski <kevin@kch42.de> | 2015-04-14 22:13:35 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2015-04-14 22:13:35 +0200 |
commit | 17f662cc6ff4f50c30270a23f6679af1b251e82c (patch) | |
tree | 6121b4cc2596ffe37c2fd79a446d30843e40ccd3 /tests/test_autoescape | |
parent | 51438e2ce27d4caee69d310d27a0f2b865cdcdb8 (diff) | |
download | ste-17f662cc6ff4f50c30270a23f6679af1b251e82c.tar.gz ste-17f662cc6ff4f50c30270a23f6679af1b251e82c.tar.bz2 ste-17f662cc6ff4f50c30270a23f6679af1b251e82c.zip |
$escape_method is now private
Diffstat (limited to 'tests/test_autoescape')
-rw-r--r-- | tests/test_autoescape/code.php | 7 |
1 files changed, 4 insertions, 3 deletions
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"&<bar>'; $ste->register_tag('echoarg', function ($ste, $params, $sub) { return $params['echo']; }); - - // Autoescaping enabled by default - $ste->escape_method = STECore::ESCAPE_HTML; } |