We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71573ae commit aabe202Copy full SHA for aabe202
Tests/CompilerTest.php
@@ -51,4 +51,13 @@ public function testCompileTextToken()
51
$compiler->write();
52
$this->assertTrue(true);
53
}
54
+
55
+ /**
56
+ * @expectedException Spoon\Template\SyntaxError
57
+ */
58
+ public function testNonExistingTag()
59
+ {
60
+ $compiler = new Compiler($this->template, $this->path . '/no_such_tag.tpl');
61
+ $compiler->write();
62
+ }
63
Tests/templates/no_such_tag.tpl
@@ -0,0 +1,4 @@
1
+This template is used to test for template tags
2
+that don't exist.
3
4
+{% foobar %}
0 commit comments