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_scoping/Test.php | 18 ++++++++++++++++++ tests/functional/test_scoping/test.tpl | 18 ++++++++++++++++++ tests/functional/test_scoping/want | 9 +++++++++ 3 files changed, 45 insertions(+) create mode 100644 tests/functional/test_scoping/Test.php create mode 100644 tests/functional/test_scoping/test.tpl create mode 100644 tests/functional/test_scoping/want (limited to 'tests/functional/test_scoping') diff --git a/tests/functional/test_scoping/Test.php b/tests/functional/test_scoping/Test.php new file mode 100644 index 0000000..b15f911 --- /dev/null +++ b/tests/functional/test_scoping/Test.php @@ -0,0 +1,18 @@ +A +B + + in foo: \$a = $a + in foo: \$b = $b + in foo: \$c = $c + X + Y + Z + in foo (after set): \$a = $a + in foo (after set): \$b = $b + in foo (after set): \$c = $c + + + +\$a = $a +\$b = $b +\$c = $c \ No newline at end of file diff --git a/tests/functional/test_scoping/want b/tests/functional/test_scoping/want new file mode 100644 index 0000000..6e7a154 --- /dev/null +++ b/tests/functional/test_scoping/want @@ -0,0 +1,9 @@ +in foo: $a = A +in foo: $b = B +in foo: $c = +in foo (after set): $a = X +in foo (after set): $b = Y +in foo (after set): $c = Z +$a = X +$b = B +$c = -- cgit v1.2.3-70-g09d2