X-Git-Url: https://git.rapsys.eu/bbcode/blobdiff_plain/2d6495ed5c357dbfcfbd6aedf6b24b406225e128..HEAD:/tests/003.phpt
diff --git a/tests/003.phpt b/tests/003.phpt
index 36c3931..f9b0362 100644
--- a/tests/003.phpt
+++ b/tests/003.phpt
@@ -1,51 +1,13 @@
--TEST--
-Check for bbcode clone
+Check for missing tag arg
--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]');
-?>
+try {
+ $obj = new bbcode();
+} catch (Exception $e) {
+ echo $e->getMessage();
+}
--EXPECT--
-[ul][li][url=https://rapsys.eu]Rapsys[/url][/li][li][url=https://google.fr]Google[/url][/li][/ul]
+BBCode::__construct() expects at least 1 parameter, 0 given