You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InterchangeTest.php 591B

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