3 require_once 'HTMLPurifier/ChildDefHarness.php';
4 require_once 'HTMLPurifier/ChildDef/Chameleon.php';
6 class HTMLPurifier_ChildDef_ChameleonTest
extends HTMLPurifier_ChildDefHarness
11 $this->obj
= new HTMLPurifier_ChildDef_Chameleon(
12 'b | i', // allowed only when in inline context
13 'b | i | div' // allowed only when in block context
17 '<b>Allowed.</b>', true,
18 array(), array('IsInline' => true)
22 '<div>Not allowed.</div>', '',
23 array(), array('IsInline' => true)
27 '<div>Allowed.</div>', true,
28 array(), array('IsInline' => false)