diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 10:07:09 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 10:07:09 +0200 |
commit | 4ddb2aef646f0f99656e2c1e13298c7ec2c611c9 (patch) | |
tree | d7b9510e21e1c188894d821682327f5bfb9e225e /tests/test_simple | |
parent | e8684bba1f68c1fa02c25f3c6fab0f8cd532b69a (diff) | |
parent | fc8f7eec23e8e95fc9a4a483bb69a1ee6866069d (diff) | |
download | ste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.tar.gz ste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.tar.bz2 ste-4ddb2aef646f0f99656e2c1e13298c7ec2c611c9.zip |
Merge branch 'parser2' of git@github.com:kch42/Stupid-Template-Engine.git into improve-lang
Diffstat (limited to 'tests/test_simple')
-rw-r--r-- | tests/test_simple/.gitignore | 3 | ||||
-rw-r--r-- | tests/test_simple/code.php | 5 | ||||
-rw-r--r-- | tests/test_simple/test.tpl | 1 | ||||
-rw-r--r-- | tests/test_simple/want | 1 |
4 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_simple/.gitignore b/tests/test_simple/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_simple/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_simple/code.php b/tests/test_simple/code.php new file mode 100644 index 0000000..4c0babc --- /dev/null +++ b/tests/test_simple/code.php @@ -0,0 +1,5 @@ +<?php + +function test_func($ste) { + $ste->vars["foo"] = "World"; +} diff --git a/tests/test_simple/test.tpl b/tests/test_simple/test.tpl new file mode 100644 index 0000000..30a4f22 --- /dev/null +++ b/tests/test_simple/test.tpl @@ -0,0 +1 @@ +Hello $foo!
\ No newline at end of file diff --git a/tests/test_simple/want b/tests/test_simple/want new file mode 100644 index 0000000..c57eff5 --- /dev/null +++ b/tests/test_simple/want @@ -0,0 +1 @@ +Hello World!
\ No newline at end of file |