Skip to content

Commit 1a6bbef

Browse files
committed
tests: fixed compatibility with new Latte
1 parent 973ce77 commit 1a6bbef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Bridges.Latte/expected/UIMacros.dynamicsnippets.alt.phtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// block _outer1
77
//
88
if (!function_exists($_b->blocks['_outer1'][] = '_%[a-z0-9]+%__outer1')) { function _%[a-z0-9]+%__outer1($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer1', FALSE)
9-
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
9+
;%a% foreach (array(1,2,3) as $id) { ?>
1010
<div<?php echo ' id="' . ($_l->dynSnippetId = $_control->getSnippetId("inner-$id")) . '"' ?>>
1111
<?php ob_start() ?> #<?php echo Latte\Runtime\Filters::escapeHtml($id, ENT_NOQUOTES) ?>
1212

@@ -19,7 +19,7 @@ if (!function_exists($_b->blocks['_outer1'][] = '_%[a-z0-9]+%__outer1')) { funct
1919
// block _outer2
2020
//
2121
if (!function_exists($_b->blocks['_outer2'][] = '_%[a-z0-9]+%__outer2')) { function _%[a-z0-9]+%__outer2($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer2', FALSE)
22-
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
22+
;%a% foreach (array(1,2,3) as $id) { ?>
2323
<div<?php echo ' id="' . ($_l->dynSnippetId = $_control->getSnippetId("inner-$id")) . '"' ?>>
2424
<?php ob_start() ?> #<?php echo Latte\Runtime\Filters::escapeHtml($id, ENT_NOQUOTES) ?>
2525

tests/Bridges.Latte/expected/UIMacros.dynamicsnippets.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// block _outer
77
//
88
if (!function_exists($_b->blocks['_outer'][] = '_%[a-z0-9]+%__outer')) { function _%[a-z0-9]+%__outer($_b, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v; $_control->redrawControl('outer', FALSE)
9-
;$iterations = 0; foreach (array(1,2,3) as $id) { ?>
9+
;%a% foreach (array(1,2,3) as $id) { ?>
1010
<div id="<?php echo $_l->dynSnippetId = $_control->getSnippetId("inner-$id") ?>
1111
"><?php ob_start() ?>
1212

0 commit comments

Comments
 (0)