]> Raphaƫl G. Git Repositories - bbcode/blobdiff - tests/004.phpt
Add basic tests
[bbcode] / tests / 004.phpt
diff --git a/tests/004.phpt b/tests/004.phpt
new file mode 100644 (file)
index 0000000..04cee5d
--- /dev/null
@@ -0,0 +1,13 @@
+--TEST--
+Check for empty tag arg
+--SKIPIF--
+<?php if (!extension_loaded("bbcode")) print "skip"; ?>
+--FILE--
+<?php
+try {
+       $obj = new bbcode([]);
+} catch (Exception $e) {
+       echo $e->getMessage();
+}
+--EXPECT--
+BBCode::__construct(): Tag array has 0 BBCODE::TYPE_ROOT entry instead of expected unique one