예제 #1
0
파일: IDTest.php 프로젝트: sebbie42/casebox
 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();
 }
예제 #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);
 }
예제 #3
0
 public function setUp()
 {
     parent::setUp();
     $this->def = new HTMLPurifier_AttrDef_HTML_Nmtokens();
 }
예제 #4
0
 function setUp()
 {
     $this->def = new HTMLPurifier_AttrDef_URI();
     parent::setUp();
 }