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 --- tests/functional/test_closure/Test.php | 18 ++++++++++++++++++ tests/functional/test_closure/test.tpl | 10 ++++++++++ tests/functional/test_closure/want | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 tests/functional/test_closure/Test.php create mode 100644 tests/functional/test_closure/test.tpl create mode 100644 tests/functional/test_closure/want (limited to 'tests/functional/test_closure') diff --git a/tests/functional/test_closure/Test.php b/tests/functional/test_closure/Test.php new file mode 100644 index 0000000..012e4c6 --- /dev/null +++ b/tests/functional/test_closure/Test.php @@ -0,0 +1,18 @@ + + + + $x + + + +10 +20 +30 +40 \ No newline at end of file diff --git a/tests/functional/test_closure/want b/tests/functional/test_closure/want new file mode 100644 index 0000000..98d2f20 --- /dev/null +++ b/tests/functional/test_closure/want @@ -0,0 +1,2 @@ +40 +60 -- cgit v1.2.3-70-g09d2