Skip to content

Commit a1c1322

Browse files
committed
fixed tests
1 parent 8e35668 commit a1c1322

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/Bridges.Latte3/expected/cache.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22
%A%
3-
if ($this->global->cache->createCache('%a%')) /* line %d% */
3+
if ($this->global->cache->createCache('%a%')) /* line %a% */
44
try {
55
echo ' ';
6-
echo LR\Filters::escapeHtmlText(($this->filters->lower)($title)) /* line %d% */;
6+
echo LR\%a%(($this->filters->lower)($title)) /* line %a% */;
77
echo "\n";
88

9-
$this->global->cache->end() /* line %d% */;
9+
$this->global->cache->end() /* line %a% */;
1010
} catch (\Throwable $ʟ_e) {
1111
$this->global->cache->rollback();
1212
throw $ʟ_e;

tests/Bridges.Latte3/expected/cache.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
echo 'Noncached content
44
55
';
6-
if ($this->global->cache->createCache('%a%', [$id, 'tags' => 'mytag'])) /* line %d% */
6+
if ($this->global->cache->createCache('%a%', [$id, 'tags' => 'mytag'])) /* line %a% */
77
try {
88
echo '
99
<h1>';
10-
echo LR\Filters::escapeHtmlText(($this->filters->upper)($title)) /* line %d% */;
10+
echo LR\%a%(($this->filters->upper)($title)) /* line %a% */;
1111
echo '</h1>
1212
1313
';
14-
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, 'include')->renderToContentType('html') /* line %d% */;
14+
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, 'include')->renderToContentType('html') /* line %a% */;
1515
echo "\n";
1616

17-
$this->global->cache->end() /* line %d% */;
17+
$this->global->cache->end() /* line %a% */;
1818
} catch (\Throwable $ʟ_e) {
1919
$this->global->cache->rollback();
2020
throw $ʟ_e;

0 commit comments

Comments
 (0)