Fix newline issues in tests.
[htmlpurifier/darkodev.git] / tests / HTMLPurifier / ConfigSchema / InterchangeTest.php
blob9852d48d033ac08d03a1cbb24d0775a9d0f74ff4
1 <?php
3 class HTMLPurifier_ConfigSchema_InterchangeTest extends UnitTestCase
6 protected $interchange;
8 public function setup() {
9 $this->interchange = new HTMLPurifier_ConfigSchema_Interchange();
12 function testAddNamespace() {
13 $v = new HTMLPurifier_ConfigSchema_Interchange_Namespace();
14 $v->namespace = 'Namespace';
15 $this->interchange->addNamespace($v);
16 $this->assertIdentical($v, $this->interchange->namespaces['Namespace']);
19 function testAddDirective() {
20 $v = new HTMLPurifier_ConfigSchema_Interchange_Directive();
21 $v->id = new HTMLPurifier_ConfigSchema_Interchange_Id('Namespace', 'Directive');
22 $this->interchange->addDirective($v);
23 $this->assertIdentical($v, $this->interchange->directives['Namespace.Directive']);