10">Link',
'?>cond > 10){ ?> class="active">Link'
),
// cond
array(
'Link1say, hello',
'?>Link1cond){ ?>say, hello'
),
// cond
array(
'Link1Link2',
'?>Link1v==$__Context->k){ ?>Link2'
),
// for loop
array(
'
',
'?>i=0;$__Context->i<$__Context->len;$__Context->i++){ ?>- Link
'
),
// foreach loop
array(
'',
'?>arr&&count($__Context->arr))foreach($__Context->arr as $__Context->key=>$__Context->val){ ?>- Link
arr2&&count($__Context->arr2))foreach($__Context->arr2 as $__Context->key2=>$__Context->val2){ ?>
'
),
// while loop
array(
'',
'?>item=get_loop_item()){ ?>- Link
'
),
// ~
array(
'LinkHello, world ',
'?>Linkcond){ ?>Hello, world '
),
// ~
array(
'LinkHello, {$world}',
'?>Linkcond){ ?>Hello, world ?>'
),
// ~ ~
array(
'LinkHello, worldWow',
'?>Linkcond){ ?>Hello, worldWow'
),
// ~ ~ ~
array(
'LinkHello, worldHaHaWow',
'?>Linkcond){ ?>Hello, worldcond2){ ?>HaHaWow'
),
// ~
array(
'Repeat this',
PHP_EOL.'for($__Context->i=0;$__Context->i<$__Context->len;$__Context->i++){ ?>Repeat this'
),
// ~
array(
'item{$key} : {$val}',
PHP_EOL . 'if($__Context->arr&&count($__Context->arr))foreach($__Context->arr as $__Context->key=>$__Context->val){ ?>itemkey ?> : val ?>'
),
// ~
array(
'{$v->text}',
PHP_EOL.'while($__Context->item=$__Context->list->getItem()){ ?>v->text ?>'
),
// ~ ~ ~ ~
array(
' A BC',
'?>var){;'.PHP_EOL.'case "A": ?> ABC'
),
// invalid block statement
array(
'',
'?>'
),
// {@ ...PHP_CODE...}
array(
'{@$list_page = $page_no}',
'?>list_page = $__Context->page_no ?>'
),
// %load_js_plugin
array(
'',
'?>'
),
// #include
array(
'This is another dummy
',
'?>compile(\'tests/unit/classes/template\',\'sample.html\') ?>This is another dummy
'
),
//
array(
'This is another dummy
',
'?>compile(\'tests/unit/classes\',\'sample.html\') ?>This is another dummy
'
),
//
array(
'',
'?>'
),
//
array(
'',
'?>'
),
//
array(
'',
'?>'
),
//
array(
'',
'?>compile(); ?>'
),
//
array(
'',
'?>'
),
//
array(
'',
'?>'
),
// comment
array(
'',
'?>'
),
// self-closing tag
array(
'',
PHP_EOL . 'if($__Context->foo){ ?>'
),
// relative path1
array(
'
',
'?>
'
),
// relative path2
array(
'
',
'?>
'
),
// error case
array(
'
',
PHP_EOL . 'if($__Context->layout_info->logo_image){ ?>
'
),
// error case - ignore stylesheets
array(
'',
'?>'
),
// error case - ignore json
array(
'',
'?>'
),
// error case - inline javascript
array(
'',
'?>'
),
// issue 103
array(
'',
'?>'
),
// issue 135
array(
'{$key}
Loop block {$val}
',
PHP_EOL . 'if($__Context->_m_list_all&&count($__Context->_m_list_all))foreach($__Context->_m_list_all as $__Context->key=>$__Context->val){ ?>key ?>
Loop block val ?>
'
),
// issue 136
array(
'
bar',
PHP_EOL . 'if($__Context->var==\'foo\'){ ?>
bar'
),
// issue 188
array(
'Hello, world!
',
PHP_EOL . 'if($__Context->ii < $__Context->nn){;'.PHP_EOL.'if($__Context->dummy&&count($__Context->dummy))foreach($__Context->dummy as $__Context->k=>$__Context->v){ ?>Hello, world!
'
),
// issue 190
array(
'Hello, world!
',
PHP_EOL . 'if(!($__Context->i >= $__Context->n)){;'.PHP_EOL.'if($__Context->dummy&&count($__Context->dummy))foreach($__Context->dummy as $__Context->k=>$__Context->v){ ?>Hello, world!
'
),
// issue 183
array(
'',
'?>vvvls&&count($__Context->vvvls))foreach($__Context->vvvls as $__Context->vvv){ ?>| vvv ?> |
'."\n".'| C | D |
'
),
// issue 512 - ignores