Skip to content

Commit

Permalink
test: last latte
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 25, 2021
1 parent 912fde9 commit d2bd23d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"require-dev": {
"nette/tester": "^2.0",
"nette/di": "^v3.0",
"latte/latte": "^2.9",
"latte/latte": "^2.10",
"tracy/tracy": "^2.4",
"phpstan/phpstan": "^0.12"
},
Expand Down
4 changes: 2 additions & 2 deletions tests/Bridges.Latte/expected/CacheMacro.cache.inc.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
echo "\n";
Nette\Bridges\CacheLatte\CacheMacro::endCache($this->global->cacheStack);
}
catch (\Throwable $__e) {
catch (\Throwable $ʟ_e) {
Nette\Bridges\CacheLatte\CacheMacro::rollback($this->global->cacheStack);
throw $__e;
throw $ʟ_e;
}
%A%
7 changes: 3 additions & 4 deletions tests/Bridges.Latte/expected/CacheMacro.cache.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
echo '</h1>
';
/* line 7 */
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, "include")->renderToContentType('html');
$this->createTemplate('include.cache.latte', ['localvar' => 11] + $this->params, 'include')->renderToContentType('html') /* line %d% */;
echo "\n";
Nette\Bridges\CacheLatte\CacheMacro::endCache($this->global->cacheStack, [$id, 'tags' => 'mytag']);
}
catch (\Throwable $__e) {
catch (\Throwable $ʟ_e) {
Nette\Bridges\CacheLatte\CacheMacro::rollback($this->global->cacheStack);
throw $__e;
throw $ʟ_e;
}
%A%
}
Expand Down

0 comments on commit d2bd23d

Please sign in to comment.