3 class HTMLPurifier_ConfigSchema_Interchange_Validator_IdExistsTest
extends HTMLPurifier_ConfigSchema_Interchange_ValidatorHarness
6 public function setup() {
8 $this->validator
= new HTMLPurifier_ConfigSchema_Interchange_Validator_IdExists($this->mock
);
11 public function testNamespace() {
12 $this->mock
->expectNever('addNamespace');
13 $this->expectSchemaException('Namespace must have ID');
14 $this->validator
->addNamespace();
17 public function testDirective() {
18 $this->mock
->expectNever('addDirective');
19 $this->expectSchemaException('Directive must have ID');
20 $this->validator
->addDirective();