obj = new HTMLPurifier_Strategy_RemoveForeignElements();
$this->config->set('HTML.TidyLevel', 'heavy');
}
public function testCenterTransform()
{
$this->assertResult(
'
Look I am Centered!',
'Look I am Centered!
'
);
}
public function testFontTransform()
{
$this->assertResult(
'Big Warning!',
'Big'.
' Warning!'
);
}
public function testTransformToForbiddenElement()
{
$this->config->set('HTML.Allowed', 'div');
$this->assertResult(
'Big Warning!',
'Big Warning!'
);
}
public function testMenuTransform()
{
$this->assertResult(
'',
''
);
}
}
// vim: et sw=4 sts=4