From 698d87d578dfe5d2a794f75003ded834081ca738 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 22 Sep 2020 22:09:51 +0200 Subject: Allow returning a non-string (usually void) again in custom tags --- .../test_user_tag_returns_nothing/Test.php | 22 ++++++++++++++++++++++ .../test_user_tag_returns_nothing/test.tpl | 1 + .../functional/test_user_tag_returns_nothing/want | 0 3 files changed, 23 insertions(+) create mode 100644 tests/functional/test_user_tag_returns_nothing/Test.php create mode 100644 tests/functional/test_user_tag_returns_nothing/test.tpl create mode 100644 tests/functional/test_user_tag_returns_nothing/want (limited to 'tests/functional') diff --git a/tests/functional/test_user_tag_returns_nothing/Test.php b/tests/functional/test_user_tag_returns_nothing/Test.php new file mode 100644 index 0000000..cd85908 --- /dev/null +++ b/tests/functional/test_user_tag_returns_nothing/Test.php @@ -0,0 +1,22 @@ +register_tag('foobar', function ($ste, $params, $sub) { + // nop + }); + } + + protected function getDirectory(): string + { + return __DIR__; + } +} diff --git a/tests/functional/test_user_tag_returns_nothing/test.tpl b/tests/functional/test_user_tag_returns_nothing/test.tpl new file mode 100644 index 0000000..94799a8 --- /dev/null +++ b/tests/functional/test_user_tag_returns_nothing/test.tpl @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/tests/functional/test_user_tag_returns_nothing/want b/tests/functional/test_user_tag_returns_nothing/want new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-54-g00ecf