aboutsummaryrefslogtreecommitdiffstats
path: root/lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php')
-rw-r--r--lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php b/lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php
new file mode 100644
index 000000000..0d539ea2c
--- /dev/null
+++ b/lib/htmlpurifier/tests/HTMLPurifier/ConfigSchema/InterchangeTest.php
@@ -0,0 +1,21 @@
+<?php
+
+class HTMLPurifier_ConfigSchema_InterchangeTest extends UnitTestCase
+{
+
+ protected $interchange;
+
+ public function setup() {
+ $this->interchange = new HTMLPurifier_ConfigSchema_Interchange();
+ }
+
+ function testAddDirective() {
+ $v = new HTMLPurifier_ConfigSchema_Interchange_Directive();
+ $v->id = new HTMLPurifier_ConfigSchema_Interchange_Id('Namespace.Directive');
+ $this->interchange->addDirective($v);
+ $this->assertIdentical($v, $this->interchange->directives['Namespace.Directive']);
+ }
+
+}
+
+// vim: et sw=4 sts=4