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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user