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_trailing_closing_array_bracket/Test.php | 23 ++++++++++++++++++++++ .../test_trailing_closing_array_bracket/test.tpl | 3 +++ .../test_trailing_closing_array_bracket/want | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 tests/functional/test_trailing_closing_array_bracket/Test.php create mode 100644 tests/functional/test_trailing_closing_array_bracket/test.tpl create mode 100644 tests/functional/test_trailing_closing_array_bracket/want (limited to 'tests/functional/test_trailing_closing_array_bracket') diff --git a/tests/functional/test_trailing_closing_array_bracket/Test.php b/tests/functional/test_trailing_closing_array_bracket/Test.php new file mode 100644 index 0000000..9e6ff2c --- /dev/null +++ b/tests/functional/test_trailing_closing_array_bracket/Test.php @@ -0,0 +1,23 @@ +set_var_by_name("foo", array( + "foo", + "bar", + "baz", + )); + } +} diff --git a/tests/functional/test_trailing_closing_array_bracket/test.tpl b/tests/functional/test_trailing_closing_array_bracket/test.tpl new file mode 100644 index 0000000..68f6caa --- /dev/null +++ b/tests/functional/test_trailing_closing_array_bracket/test.tpl @@ -0,0 +1,3 @@ +$foo[0] +$foo[1] +$foo[2] \ No newline at end of file diff --git a/tests/functional/test_trailing_closing_array_bracket/want b/tests/functional/test_trailing_closing_array_bracket/want new file mode 100644 index 0000000..86e041d --- /dev/null +++ b/tests/functional/test_trailing_closing_array_bracket/want @@ -0,0 +1,3 @@ +foo +bar +baz -- cgit v1.2.3-70-g09d2