InterchangeTest.php 576 B

123456789101112131415161718192021
  1. <?php
  2. class HTMLPurifier_ConfigSchema_InterchangeTest extends UnitTestCase
  3. {
  4. protected $interchange;
  5. public function setup() {
  6. $this->interchange = new HTMLPurifier_ConfigSchema_Interchange();
  7. }
  8. function testAddDirective() {
  9. $v = new HTMLPurifier_ConfigSchema_Interchange_Directive();
  10. $v->id = new HTMLPurifier_ConfigSchema_Interchange_Id('Namespace.Directive');
  11. $this->interchange->addDirective($v);
  12. $this->assertIdentical($v, $this->interchange->directives['Namespace.Directive']);
  13. }
  14. }
  15. // vim: et sw=4 sts=4