Skip to content

Commit ea424b8

Browse files
committed
tests: updated latte
1 parent 085440e commit ea424b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ $latte->addProvider('uiControl', new class {
2828
}
2929
});
3030

31-
Assert::error(function () use ($latte) {
31+
Assert::exception(function () use ($latte) {
3232
$latte->renderToString('<div {control x}');
33-
}, E_USER_WARNING, 'Filters: unable to convert content type HTML to HTMLTAG');
33+
}, Latte\CompileException::class, 'Filters: unable to convert content type HTML to HTMLTAG');
3434

3535
Assert::same(
3636
'<div title="&lt;&gt;&amp;">',
3737
$latte->renderToString('<div title="{control x}">')
3838
);
3939

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

0 commit comments

Comments
 (0)