3 class HTMLPurifier_ConfigSchema_InterchangeTest
extends UnitTestCase
6 protected $interchange;
8 public function setup()
10 $this->interchange
= new HTMLPurifier_ConfigSchema_Interchange();
13 public function testAddDirective()
15 $v = new HTMLPurifier_ConfigSchema_Interchange_Directive();
16 $v->id
= new HTMLPurifier_ConfigSchema_Interchange_Id('Namespace.Directive');
17 $this->interchange
->addDirective($v);
18 $this->assertIdentical($v, $this->interchange
->directives
['Namespace.Directive']);