mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
d81bcbd208
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1586 48356398-32a2-884e-a903-53898d9a118a
24 lines
707 B
PHP
24 lines
707 B
PHP
<?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);
|
|
}
|
|
|
|
}
|