--TEST--
Check for bbcode clone
--SKIPIF--
--FILE--
[
'type' => BBCODE::TYPE_ROOT,
'child' => ['ul','url','img','b','i']
],
'i' => [
'type' => BBCODE::TYPE_MULTI
//TODO: by default open tag = and close tag =
],
'b' => [
'type' => BBCODE::TYPE_MULTI
],
'ul' => [
'type' => BBCODE::TYPE_MULTI,
'child' => [ 'li' ]
],
'li' => [
'type' => BBCODE::TYPE_MULTI,
'parent' => 'ul',
'child' => ['url','img','b','i']
],
'url' => [
'type' => BBCODE::TYPE_MULTI,
'parent' => [ '', 'li', 'b', 'i', null, 'toto', 0, 42 ],
'open' => '',
'close' => '',
'default' => '{CONTENT}'
]
],
[
':)' => '',
':(' => '',
':D' => '',
':p' => '',
':|' => '',
':6:' => '',
],
BBCODE::REMOVE_EMPTY
);
$cln = clone $obj;
echo $cln->parse('[ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]');
?>
--EXPECT--
[ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]