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