mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-06 06:07:26 +02:00
PSR-2 reformatting PHPDoc corrections
With minor corrections. Signed-off-by: Marcus Bointon <marcus@synchromedia.co.uk> Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
committed by
Edward Z. Yang
parent
19eee14899
commit
fac747bdbd
@@ -2,35 +2,44 @@
|
||||
|
||||
class HTMLPurifier_Strategy_MakeWellFormed_EndInsertInjectorTest extends HTMLPurifier_StrategyHarness
|
||||
{
|
||||
function setUp() {
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->obj = new HTMLPurifier_Strategy_MakeWellFormed();
|
||||
$this->config->set('AutoFormat.Custom', array(
|
||||
new HTMLPurifier_Strategy_MakeWellFormed_EndInsertInjector()
|
||||
));
|
||||
}
|
||||
function testEmpty() {
|
||||
public function testEmpty()
|
||||
{
|
||||
$this->assertResult('');
|
||||
}
|
||||
function testNormal() {
|
||||
public function testNormal()
|
||||
{
|
||||
$this->assertResult('<i>Foo</i>', '<i>Foo<b>Comment</b></i>');
|
||||
}
|
||||
function testEndOfDocumentProcessing() {
|
||||
public function testEndOfDocumentProcessing()
|
||||
{
|
||||
$this->assertResult('<i>Foo', '<i>Foo<b>Comment</b></i>');
|
||||
}
|
||||
function testDoubleEndOfDocumentProcessing() {
|
||||
public function testDoubleEndOfDocumentProcessing()
|
||||
{
|
||||
$this->assertResult('<i><i>Foo', '<i><i>Foo<b>Comment</b></i><b>Comment</b></i>');
|
||||
}
|
||||
function testEndOfNodeProcessing() {
|
||||
public function testEndOfNodeProcessing()
|
||||
{
|
||||
$this->assertResult('<div><i>Foo</div>asdf', '<div><i>Foo<b>Comment</b></i></div><i>asdf<b>Comment</b></i>');
|
||||
}
|
||||
function testEmptyToStartEndProcessing() {
|
||||
public function testEmptyToStartEndProcessing()
|
||||
{
|
||||
$this->assertResult('<i />', '<i><b>Comment</b></i>');
|
||||
}
|
||||
function testSpuriousEndTag() {
|
||||
public function testSpuriousEndTag()
|
||||
{
|
||||
$this->assertResult('</i>', '');
|
||||
}
|
||||
function testLessButStillSpuriousEndTag() {
|
||||
public function testLessButStillSpuriousEndTag()
|
||||
{
|
||||
$this->assertResult('<div></i></div>', '<div></div>');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user