]> Raphaƫl G. Git Repositories - bbcode/blob - tests/002.phpt
Add basic tests
[bbcode] / tests / 002.phpt
1 --TEST--
2 Check for missing tag in child
3 --SKIPIF--
4 <?php if (!extension_loaded("bbcode")) print "skip"; ?>
5 --FILE--
6 <?php
7 try {
8 $obj = new bbcode(
9 [
10 '' => [
11 'type' => BBCODE::TYPE_ROOT,
12 'child' => ['missing']
13 ]
14 ]
15 );
16 } catch (Exception $e) {
17 echo $e->getMessage();
18 }
19 --EXPECT--
20 BBCode::__construct(): Child value missing for key [0]/child[1] is not present in tag keys