X-Git-Url: https://git.rapsys.eu/bbcode/blobdiff_plain/c984cf9f2a00294d69fa29da1c299b7996ccf399..bf6b128379b87fb3e0e38faa4f3ce4eef74563bf:/tests/002.phpt
diff --git a/tests/002.phpt b/tests/002.phpt
index a1359a4..b9d101a 100644
--- a/tests/002.phpt
+++ b/tests/002.phpt
@@ -6,33 +6,35 @@ Check for bbcode functions
[
+ ],
'' => [
'type' => BBCODE::TYPE_ROOT,
- 'childs' => ['ul','url','img','b','i']
+ 'child' => ['ul','url','img','b','i']
],
'i' => [
- 'type' => BBCODE::TYPE_NOARG
+ 'type' => BBCODE::TYPE_MULTI
//TODO: by default open tag = and close tag =
],
'b' => [
- 'type' => BBCODE::TYPE_NOARG
+ 'type' => BBCODE::TYPE_MULTI
],
'ul' => [
- 'type' => BBCODE::TYPE_NOARG,
- 'childs' => [ 'li' ]
+ 'type' => BBCODE::TYPE_MULTI,
+ 'child' => ['li']
],
'li' => [
- 'type' => BBCODE::TYPE_NOARG,
- 'parent' => 'ul',
- 'childs' => ['url','img','b','i']
+ 'type' => BBCODE::TYPE_MULTI,
+ 'parent' => ['ul'],
+ 'child' => ['url','img','b','i']
],
'url' => [
- 'type' => BBCODE::TYPE_OPTARG,
- 'open_tag' => '',
- 'close_tag' => '',
- 'default_arg' => '{CONTENT}',
- 'parent' => [ '', 'li', 'b', 'i' ]
- ]
+ 'type' => BBCODE::TYPE_MULTI,
+ 'parent' => ['','li','b','i'],
+ 'open' => '',
+ 'close' => '',
+ 'arg' => 'href'
+ ],
],
[
':)' => '',