obj = new HTMLPurifier_ChildDef_StrictBlockquote('div | p'); // assuming default wrap is p $this->assertResult(''); $this->assertResult('
Valid
'); $this->assertResult('Needs wrap
'); $this->assertResult('Do not wrap
Whitespace
'); $this->assertResult( 'Wrap'. 'Do not wrap
', 'Wrap
Do not wrap
' ); $this->assertResult( 'Do not
'.'Wrap', 'Do not
Wrap
' ); $this->assertResult( 'Hmm.
', 'Not allowedParagraph.
Hmm.
' ); $this->assertResult( $var = 'He said$var
" ); $this->assertResult( 'Fools!
', 'Bar'. 'PeopleConniving.
Fools!
' ); $this->assertResult('Needs wrap', 'Needs wrap
', array('HTML.BlockWrapper' => 'dav')); $this->swallowErrors(); } }