mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 01:08:41 +00:00
c0b5bc3eea
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1599 48356398-32a2-884e-a903-53898d9a118a
25 lines
648 B
PHP
25 lines
648 B
PHP
<?php
|
|
|
|
class HTMLPurifier_ConfigSchema_ValidatorHarness extends UnitTestCase
|
|
{
|
|
|
|
protected $interchange, $validator;
|
|
|
|
public function setup() {
|
|
$this->interchange = new HTMLPurifier_ConfigSchema_Interchange();
|
|
if (empty($this->validator)) {
|
|
$class_to_test = substr(get_class($this), 0, -4);
|
|
$this->validator = new $class_to_test;
|
|
}
|
|
}
|
|
|
|
public function teardown() {
|
|
unset($this->validator, $this->interchange);
|
|
}
|
|
|
|
protected function expectSchemaException($msg) {
|
|
$this->expectException(new HTMLPurifier_ConfigSchema_Exception($msg));
|
|
}
|
|
|
|
}
|