diff options
Diffstat (limited to 'php/tests')
-rw-r--r-- | php/tests/TemplateTest.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/php/tests/TemplateTest.php b/php/tests/TemplateTest.php index b6e72c9..984409d 100644 --- a/php/tests/TemplateTest.php +++ b/php/tests/TemplateTest.php @@ -374,4 +374,13 @@ final class TemplateTest extends TestCase { $this->assertEquals($want, $r); } + + public function testToString() : void { + $want = '%{val|key foo}'; + + # run template + $r = new Template($want); + + $this->assertEquals($want, $r); + } }; |