public function setUp() { parent::setUp(); $id_accumulator = new HTMLPurifier_IDAccumulator(); $this->context->register('IDAccumulator', $id_accumulator); $this->config->set('Attr.EnableID', true); $this->def = new HTMLPurifier_AttrDef_HTML_ID(); }
public function setUp() { parent::setUp(); generate_mock_once('HTMLPurifier_AttrDef'); $this->with = new HTMLPurifier_AttrDefMock(); $this->without = new HTMLPurifier_AttrDefMock(); $this->def = new HTMLPurifier_AttrDef_Switch('tag', $this->with, $this->without); }
public function setUp() { parent::setUp(); $this->def = new HTMLPurifier_AttrDef_HTML_Nmtokens(); }
function setUp() { $this->def = new HTMLPurifier_AttrDef_URI(); parent::setUp(); }