mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-10-17 06:56:06 +02:00
[3.1.0] Implement NamespaceExists and ParseId
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1599 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -7,6 +7,14 @@ class HTMLPurifier_ConfigSchema_ValidatorHarness extends UnitTestCase
|
||||
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user