mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
d8cb360f3b
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1589 48356398-32a2-884e-a903-53898d9a118a
18 lines
456 B
PHP
18 lines
456 B
PHP
<?php
|
|
|
|
class HTMLPurifier_ConfigSchema_Validator_ExistsTest extends HTMLPurifier_ConfigSchema_ValidatorHarness
|
|
{
|
|
|
|
public function setup() {
|
|
parent::setup();
|
|
$this->validator = new HTMLPurifier_ConfigSchema_Validator_Exists('ID');
|
|
}
|
|
|
|
public function testValidate() {
|
|
$this->expectSchemaException('ID must exist');
|
|
$arr = array();
|
|
$this->validator->validate($arr, $this->interchange);
|
|
}
|
|
|
|
}
|