1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-13 17:43:58 +02:00

Begin creating scaffolding for the DTD declarations + evaluations that will make up the meat of the rest of the validation. Add a few more forgotten tests for makeWellFormed()

git-svn-id: http://htmlpurifier.org/svnroot/html_purifier/trunk@38 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2006-04-16 04:07:21 +00:00
parent 3f4d928173
commit 4c9f4067ab
2 changed files with 55 additions and 1 deletions

View File

@@ -109,6 +109,15 @@ class Test_PureHTMLDefinition extends UnitTestCase
,new MF_Text('</b>')
);
$inputs[5] = array(new MF_StartTag('br'));
$expect[5] = array(new MF_EmptyTag('br'));
$inputs[6] = array(new MF_EmptyTag('div'));
$expect[6] = array(
new MF_StartTag('div')
,new MF_EndTag('div')
);
foreach ($inputs as $i => $input) {
$result = $this->def->removeForeignElements($input);
$this->assertEqual($expect[$i], $result);