summaryrefslogtreecommitdiff
path: root/tests/test_tagname/code.php
blob: e934989f8d973d9149619f0a772153184f391efe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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;
            }
        );
    }
}