Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7af2099

Browse files
patrickkusebauchdg
authored andcommitted
tests: fixed latte test
1 parent 2dd99fc commit 7af2099

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/Bridges.Latte/Template.filters.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ $engine = new Latte\Engine;
1414
$template = new Template($engine);
1515

1616
Assert::exception(function () use ($template) {
17-
@$template->length('abc');
18-
}, 'LogicException', "Filter 'length' is not defined.");
17+
@$template->undefinedFilter('abc');
18+
}, 'LogicException', "Filter 'undefinedFilter' is not defined.");
1919

20-
$engine->addFilter('length', 'strlen');
20+
$engine->addFilter('undefinedFilter', 'strlen');
2121

22-
Assert::same(3, @$template->length('abc'));
22+
Assert::same(3, @$template->undefinedFilter('abc'));
2323

2424
Assert::error(function () use ($template) {
25-
$template->length('abc');
25+
$template->undefinedFilter('abc');
2626
}, E_USER_DEPRECATED, 'Invoking filters on Template object is deprecated, use getLatte()->invokeFilter().');

0 commit comments

Comments
 (0)