Skip to content

Commit 6a286f8

Browse files
committed
tests: updated latte
1 parent 0d0f57f commit 6a286f8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"nette/forms": "^3.0",
3232
"nette/robot-loader": "^3.2",
3333
"nette/security": "^3.0",
34-
"latte/latte": "^2.9.1",
34+
"latte/latte": "^2.10.2",
3535
"tracy/tracy": "^2.6",
3636
"mockery/mockery": "^1.0",
3737
"phpstan/phpstan-nette": "^0.12"

tests/Bridges.Latte/UIMacros.control.3.phpt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ $latte->addProvider('uiControl', new class {
2222
echo '<>&amp;';
2323
}
2424

25+
2526
public function __call($name, $args)
2627
{
2728
return new self;
@@ -30,7 +31,7 @@ $latte->addProvider('uiControl', new class {
3031

3132
Assert::exception(function () use ($latte) {
3233
$latte->renderToString('<div {control x}');
33-
}, Latte\CompileException::class, 'Filters: unable to convert content type HTML to HTMLTAG');
34+
}, Latte\RuntimeException::class, 'Filters: unable to convert content type HTML to HTMLTAG');
3435

3536
Assert::same(
3637
'<div title="&lt;&gt;&amp;">',
@@ -39,4 +40,4 @@ Assert::same(
3940

4041
Assert::exception(function () use ($latte) {
4142
$latte->renderToString('<style> {control x} </style>');
42-
}, Latte\CompileException::class, 'Filters: unable to convert content type HTML to HTMLCSS');
43+
}, Latte\RuntimeException::class, 'Filters: unable to convert content type HTML to HTMLCSS');

0 commit comments

Comments
 (0)