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_tagname/Test.php | 33 +++++++++++++++++++++++++++++++++ tests/functional/test_tagname/test.tpl | 4 ++++ tests/functional/test_tagname/want | 4 ++++ 3 files changed, 41 insertions(+) create mode 100644 tests/functional/test_tagname/Test.php create mode 100644 tests/functional/test_tagname/test.tpl create mode 100644 tests/functional/test_tagname/want (limited to 'tests/functional/test_tagname') diff --git a/tests/functional/test_tagname/Test.php b/tests/functional/test_tagname/Test.php new file mode 100644 index 0000000..8e3d8f6 --- /dev/null +++ b/tests/functional/test_tagname/Test.php @@ -0,0 +1,33 @@ +register_tag( + $name, + function ($ste, $params, $sub) use ($name) { + return $name; + } + ); + } + } +} diff --git a/tests/functional/test_tagname/test.tpl b/tests/functional/test_tagname/test.tpl new file mode 100644 index 0000000..30ca889 --- /dev/null +++ b/tests/functional/test_tagname/test.tpl @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/tests/functional/test_tagname/want b/tests/functional/test_tagname/want new file mode 100644 index 0000000..3233294 --- /dev/null +++ b/tests/functional/test_tagname/want @@ -0,0 +1,4 @@ +foo +ab_cd +foo123baz +x0123 -- cgit v1.2.3-70-g09d2