From 4e2bfed23c17929795f2082d6e77937170caeaa9 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Sun, 13 Sep 2020 21:35:16 +0200 Subject: Turn our functional tests into PhpUnit tests --- .../test_static_numeric_array_access/Test.php | 23 ++++++++++++++++++++++ .../test_static_numeric_array_access/test.tpl | 3 +++ .../test_static_numeric_array_access/want | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 tests/functional/test_static_numeric_array_access/Test.php create mode 100644 tests/functional/test_static_numeric_array_access/test.tpl create mode 100644 tests/functional/test_static_numeric_array_access/want (limited to 'tests/functional/test_static_numeric_array_access') diff --git a/tests/functional/test_static_numeric_array_access/Test.php b/tests/functional/test_static_numeric_array_access/Test.php new file mode 100644 index 0000000..0c6a853 --- /dev/null +++ b/tests/functional/test_static_numeric_array_access/Test.php @@ -0,0 +1,23 @@ +set_var_by_name("foo", array( + "foo", + "bar", + "baz", + )); + } +} diff --git a/tests/functional/test_static_numeric_array_access/test.tpl b/tests/functional/test_static_numeric_array_access/test.tpl new file mode 100644 index 0000000..a313c6b --- /dev/null +++ b/tests/functional/test_static_numeric_array_access/test.tpl @@ -0,0 +1,3 @@ +$foo[0] +$foo[1] +$foo[2] diff --git a/tests/functional/test_static_numeric_array_access/want b/tests/functional/test_static_numeric_array_access/want new file mode 100644 index 0000000..86e041d --- /dev/null +++ b/tests/functional/test_static_numeric_array_access/want @@ -0,0 +1,3 @@ +foo +bar +baz -- cgit v1.2.3-70-g09d2