3 class HTMLPurifier_ConfigSchema_ValidatorHarness
extends UnitTestCase
6 protected $interchange, $validator;
8 public function setup() {
9 $this->interchange
= new HTMLPurifier_ConfigSchema_Interchange();
10 if (empty($this->validator
)) {
11 $class_to_test = substr(get_class($this), 0, -4);
12 $this->validator
= new $class_to_test;
16 public function teardown() {
17 unset($this->validator
, $this->interchange
);
20 protected function expectSchemaException($msg) {
21 $this->expectException(new HTMLPurifier_ConfigSchema_Exception($msg));