2008-03-01 17:06:23 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class HTMLPurifier_ConfigSchema_InterchangeTest extends UnitTestCase
|
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-03-01 17:06:23 +00:00
|
|
|
protected $interchange;
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
public function setup()
|
|
|
|
{
|
2008-03-01 17:06:23 +00:00
|
|
|
$this->interchange = new HTMLPurifier_ConfigSchema_Interchange();
|
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
public function testAddDirective()
|
|
|
|
{
|
2008-03-22 03:55:59 +00:00
|
|
|
$v = new HTMLPurifier_ConfigSchema_Interchange_Directive();
|
2009-02-07 07:53:20 +00:00
|
|
|
$v->id = new HTMLPurifier_ConfigSchema_Interchange_Id('Namespace.Directive');
|
2008-03-22 03:55:59 +00:00
|
|
|
$this->interchange->addDirective($v);
|
2008-03-02 04:00:43 +00:00
|
|
|
$this->assertIdentical($v, $this->interchange->directives['Namespace.Directive']);
|
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2008-03-01 17:06:23 +00:00
|
|
|
}
|
2008-12-06 09:24:59 +00:00
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|