0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-15 17:38:40 +00:00
htmlpurifier/tests/HTMLPurifier/ConfigSchema/Validator/IdExistsTest.php

24 lines
707 B
PHP
Raw Normal View History

<?php
class HTMLPurifier_ConfigSchema_Validator_IdExistsTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
{
public function setup() {
parent::setup();
$this->validator = new HTMLPurifier_ConfigSchema_Validator_IdExists();
}
public function testValidateNamespace() {
$this->expectSchemaException('ID must exist in namespace');
$arr = array();
$this->validator->validateNamespace($arr, $this->interchange);
}
public function testValidateDirective() {
$this->expectSchemaException('ID must exist in directive');
$arr = array();
$this->validator->validateDirective($arr, $this->interchange);
}
}