mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-25 01:31:53 +00:00
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);
|
||
|
}
|
||
|
|
||
|
}
|