[3.1.0] Fix bug with rgb() w/ spaces inside shorthand CSS properties
[htmlpurifier.git] / tests / HTMLPurifier / ConfigSchema / ValidatorHarness.php
blobf9dd0922f645392200c1ded312b1d6e21f1cb0b0
1 <?php
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));