Skip to content

Commit

Permalink
Allow top level callbacks as well as direct access to PHP methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Enno Woortmann committed Sep 5, 2023
1 parent 8acee68 commit c09d420
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/RenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,14 @@ public function topLevelFunctionCallDataProvider()
];
}

public function testNotCallableMethod(): void
{
$this->expectException(UndefinedSymbolException::class);
$this->expectExceptionMessage('Function unknownMethod not callable');

$this->render->renderTemplateString("{{ unknownMethod('abc') }}");
}

public function propertyDataProvider(): array
{
return [
Expand Down

0 comments on commit c09d420

Please sign in to comment.