From 03dfd34bfb18907b8ff697d6b2f71623dd4998e8 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Wed, 5 Sep 2018 00:11:42 -0400 Subject: php: add testToString() --- php/tests/TemplateTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'php/tests') 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); + } }; -- cgit v1.2.3