3 class HTMLPurifier_ChildDef_ChameleonTest
extends HTMLPurifier_ChildDefHarness
8 public function setUp()
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
15 $this->context
->register('IsInline', $this->isInline
);
18 public function testInlineAlwaysAllowed()
20 $this->isInline
= true;
26 public function testBlockNotAllowedInInline()
28 $this->isInline
= true;
30 '<div>Not allowed.</div>', ''
34 public function testBlockAllowedInNonInline()
36 $this->isInline
= false;