obj = new HTMLPurifier_ChildDef_StrictBlockquote('div | p'); } function testEmptyInput() { $this->assertResult(''); } function testPreserveValidP() { $this->assertResult('
Valid
'); } function testPreserveValidDiv() { $this->assertResult('Needs wrap
'); } function testNoWrapForWhitespaceOrValidElements() { $this->assertResult('Do not wrap
Whitespace
'); } function testWrapTextNextToValidElements() { $this->assertResult( 'Wrap'. 'Do not wrap
', 'Wrap
Do not wrap
' ); } function testWrapInlineElements() { $this->assertResult( 'Do not
'.'Wrap', 'Do not
Wrap
' ); } function testWrapAndRemoveInvalidTags() { $this->assertResult( 'Hmm.
', 'Not allowedParagraph.
Hmm.
' ); } function testWrapComplicatedSring() { $this->assertResult( $var = 'He said$var
" ); } function testWrapAndRemoveInvalidTagsComplex() { $this->assertResult( 'Fools!
', 'Bar'. 'PeopleConniving.
Fools!
' ); } function testAlternateWrapper() { $this->config->set('HTML', 'BlockWrapper', 'div'); $this->assertResult('Needs wrap', 'Needs wrap
'); $this->swallowErrors(); } }