mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 06:07:26 +02:00
Refactor validators so that they can be reused between directives and namespaces.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1589 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -27,7 +27,7 @@ class HTMLPurifier_ConfigSchema_InterchangeTest extends UnitTestCase
|
||||
|
||||
public function testValidator() {
|
||||
$adapter = $this->interchange->getValidatorAdapter();
|
||||
$this->expectException(new HTMLPurifier_ConfigSchema_Exception('ID must exist in directive'));
|
||||
$this->expectException(new HTMLPurifier_ConfigSchema_Exception('ID must exist'));
|
||||
$adapter->addDirective(array());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user