diff options
Diffstat (limited to 'tests/test_array')
-rw-r--r-- | tests/test_array/.gitignore | 3 | ||||
-rw-r--r-- | tests/test_array/code.php | 13 | ||||
-rw-r--r-- | tests/test_array/test.tpl | 1 | ||||
-rw-r--r-- | tests/test_array/want | 1 |
4 files changed, 18 insertions, 0 deletions
diff --git a/tests/test_array/.gitignore b/tests/test_array/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_array/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_array/code.php b/tests/test_array/code.php new file mode 100644 index 0000000..58601e2 --- /dev/null +++ b/tests/test_array/code.php @@ -0,0 +1,13 @@ +<?php + +function test_func($ste) { + $ste->vars["foo"] = array( + "a" => array( + "blabla" => "OK" + ), + "b" => "bla" + ); + $ste->vars["bar"] = array( + "baz" => "a" + ); +} diff --git a/tests/test_array/test.tpl b/tests/test_array/test.tpl new file mode 100644 index 0000000..050045d --- /dev/null +++ b/tests/test_array/test.tpl @@ -0,0 +1 @@ +${foo[$bar[baz]][${foo[b]}bla]}
\ No newline at end of file diff --git a/tests/test_array/want b/tests/test_array/want new file mode 100644 index 0000000..d86bac9 --- /dev/null +++ b/tests/test_array/want @@ -0,0 +1 @@ +OK |