diff options
Diffstat (limited to 'tests/test_tagname/code.php')
-rw-r--r-- | tests/test_tagname/code.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_tagname/code.php b/tests/test_tagname/code.php new file mode 100644 index 0000000..6001358 --- /dev/null +++ b/tests/test_tagname/code.php @@ -0,0 +1,20 @@ +<?php + +use kch42\ste\STECore; + +function test_func(STECore $ste) { + $names = array( + "foo", + "ab_cd", + "foo123baz", + "x0123", + ); + + foreach ($names as $name) { + $ste->register_tag( + $name, + function ($ste, $params, $sub) use ($name) { return $name; } + ); + } + +} |