コード例 #1
0
 /**
  * Quick test to ensure HTMLPurifier 'works'
  */
 function testHTMLVR_construct_purifier()
 {
     $hvr = new HTMLValidationRule('HTMLValidator');
     $this->setExpectedException('ValidationException');
     $a = '<body><body><div>Hi!</div></body>';
     $hvr->getValid('testHTMLVR_construct_purifier', $a);
     // error=Unrecognized <body> tag removed
 }