obj = new HTMLPurifier_ChildDef_Optional('b | i'); $this->assertResult('Bold text', 'Bold text'); $this->assertResult('Not allowed text', ''); } }