1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-12 02:06:18 +02:00

[3.1.0] Implement ConfigSchema interchange

- Implement exception hierarchy

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1582 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2008-03-01 17:06:23 +00:00
parent c521e3a534
commit 240b565513
9 changed files with 133 additions and 1 deletions

View File

@ -52,4 +52,12 @@ class HTMLPurifier_ConfigSchema_StringHashParserTest extends UnitTestCase
));
}
function testError() {
try {
$this->parser->parseFile('NoExist.txt');
} catch (HTMLPurifier_ConfigSchema_Exception $e) {
$this->assertIdentical($e->getMessage(), 'File NoExist.txt does not exist');
}
}
}