3 class HTMLPurifier_ChildDef_ChameleonTest
extends HTMLPurifier_ChildDefHarness
10 $this->obj
= new HTMLPurifier_ChildDef_Chameleon(
11 'b | i', // allowed only when in inline context
12 'b | i | div' // allowed only when in block context
14 $this->context
->register('IsInline', $this->isInline
);
17 function testInlineAlwaysAllowed() {
18 $this->isInline
= true;
24 function testBlockNotAllowedInInline() {
25 $this->isInline
= true;
27 '<div>Not allowed.</div>', ''
31 function testBlockAllowedInNonInline() {
32 $this->isInline
= false;