blob: 6adda8c9296bf0edf1b2d987b19b658bfd360665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?php
namespace tests\functional\test_tagname;
use r7r\ste\STECore;
use tests\functional\BaseTest;
class Test extends BaseTest
{
protected function getDirectory(): string
{
return __DIR__;
}
protected function setUpSte(STECore $ste): void
{
$names = [
"foo",
"ab_cd",
"foo123baz",
"x0123",
];
foreach ($names as $name) {
$ste->register_tag(
$name,
function ($ste, $params, $sub) use ($name) {
return $name;
}
);
}
}
}
|