Skip to content

Commit

Permalink
#2301 template 테스트 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
bnu committed Oct 10, 2018
1 parent b134c37 commit 50dc3a8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/classes/template/TemplateHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,15 @@ static public function provider()
),
array(
'<config autoescape="on" />{$foo|auto}',
PHP_EOL . '$this->config->autoescape = \'on\';' . "\n" . 'echo ($this->config->autoescape === \'on\' ? escape($__Context->foo, false) : $__Context->foo) ?>'
PHP_EOL . '$this->config->autoescape = \'on\';' . "\n" . 'echo ($this->config->autoescape === \'on\' ? escape($__Context->foo, false) : ($__Context->foo)) ?>'
),
array(
'<config autoescape="off" />{$foo|auto}',
PHP_EOL . '$this->config->autoescape = \'off\';' . "\n" . 'echo ($this->config->autoescape === \'on\' ? escape($__Context->foo, false) : $__Context->foo) ?>'
PHP_EOL . '$this->config->autoescape = \'off\';' . "\n" . 'echo ($this->config->autoescape === \'on\' ? escape($__Context->foo, false) : ($__Context->foo)) ?>'
),
array(
'<config autoescape="off" />{$foo ? $foo : ""|auto}',
PHP_EOL . '$this->config->autoescape = \'off\';' . "\n" . 'echo ($this->config->autoescape === \'on\' ? escape($__Context->foo ? $__Context->foo : "", false) : ($__Context->foo ? $__Context->foo : "")) ?>'
),
array(
'<config autoescape="on" />{$foo|autoescape}',
Expand Down

0 comments on commit 50dc3a8

Please sign in to comment.