[3.1.0] Reconfigure tester to glob for test files using *Test.php pattern.
[htmlpurifier.git] / tests / HTMLPurifier / ConfigSchema / Interchange / Validator / IdExistsTest.php
blobad506ce1ee14117dc10c3983e377132b4233e70b
1 <?php
3 class HTMLPurifier_ConfigSchema_Interchange_Validator_IdExistsTest extends HTMLPurifier_ConfigSchema_Interchange_ValidatorHarness
6 public function setup() {
7 parent::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();