validator = new HTMLPurifier_ConfigSchema_Validator_Exists('ID'); } public function testValidate() { $this->expectSchemaException('ID must exist'); $arr = array(); $this->validator->validate($arr, $this->interchange); } }