summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2018-09-05 00:11:42 -0400
committerPaul Duncan <pabs@pablotron.org>2018-09-05 00:11:42 -0400
commit03dfd34bfb18907b8ff697d6b2f71623dd4998e8 (patch)
treef7ebf5b66c371247a011ba2500d9c595b4ac73ef
parent92df15ae3fb5ba341cb34308702108a9a21e447c (diff)
downloadluigi-template-03dfd34bfb18907b8ff697d6b2f71623dd4998e8.tar.bz2
luigi-template-03dfd34bfb18907b8ff697d6b2f71623dd4998e8.zip
php: add testToString()
-rw-r--r--php/tests/TemplateTest.php9
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);
+ }
};