summaryrefslogtreecommitdiff
path: root/tests/functional/test_scoping/test.tpl
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-09-13 21:35:16 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-09-13 21:35:16 +0200
commit4e2bfed23c17929795f2082d6e77937170caeaa9 (patch)
tree4d9f66596c80af8081e4279580a3bbb4721ef184 /tests/functional/test_scoping/test.tpl
parent5ee6bbbf3002daf075fa77007daccf4d2af25241 (diff)
downloadste-4e2bfed23c17929795f2082d6e77937170caeaa9.tar.gz
ste-4e2bfed23c17929795f2082d6e77937170caeaa9.tar.bz2
ste-4e2bfed23c17929795f2082d6e77937170caeaa9.zip
Turn our functional tests into PhpUnit tests
Diffstat (limited to 'tests/functional/test_scoping/test.tpl')
-rw-r--r--tests/functional/test_scoping/test.tpl18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/functional/test_scoping/test.tpl b/tests/functional/test_scoping/test.tpl
new file mode 100644
index 0000000..e8a5cf2
--- /dev/null
+++ b/tests/functional/test_scoping/test.tpl
@@ -0,0 +1,18 @@
+<ste:set var="a">A</ste:set>
+<ste:set var="b">B</ste:set>
+<ste:mktag name="foo">
+ in foo: \$a = $a
+ in foo: \$b = $b
+ in foo: \$c = $c
+ <ste:set var="a">X</ste:set>
+ <ste:setlocal var="b">Y</ste:setlocal>
+ <ste:set var="c">Z</ste:set>
+ in foo (after set): \$a = $a
+ in foo (after set): \$b = $b
+ in foo (after set): \$c = $c
+</ste:mktag>
+
+<ste:foo />
+\$a = $a
+\$b = $b
+\$c = $c \ No newline at end of file