3 require_once 'HTMLPurifier/ChildDefHarness.php';
4 require_once 'HTMLPurifier/ChildDef/Optional.php';
6 class HTMLPurifier_ChildDef_OptionalTest
extends HTMLPurifier_ChildDefHarness
11 $this->obj
= new HTMLPurifier_ChildDef_Optional('b | i');
13 $this->assertResult('<b>Bold text</b><img />', '<b>Bold text</b>');
14 $this->assertResult('Not allowed text', '');