Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 function setup()
 {
     parent::setup();
     $this->def = new HTMLPurifier_AttrDef_CSS();
 }
Esempio n. 4
0
 public function setup()
 {
     parent::setup();
     $this->def = new HTMLPurifier_AttrDef_HTML_FrameTarget();
 }
Esempio n. 5
0
 public function setUp()
 {
     parent::setUp();
     $this->def = new HTMLPurifier_AttrDef_HTML_Nmtokens();
 }
Esempio n. 6
0
 function setUp()
 {
     $this->def = new HTMLPurifier_AttrDef_URI();
     parent::setUp();
 }