mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-05 13:47:24 +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
@@ -3,45 +3,55 @@
|
||||
class HTMLPurifier_ChildDef_ListTest extends HTMLPurifier_ChildDefHarness
|
||||
{
|
||||
|
||||
function setUp() {
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
$this->obj = new HTMLPurifier_ChildDef_List();
|
||||
}
|
||||
|
||||
function testEmptyInput() {
|
||||
public function testEmptyInput()
|
||||
{
|
||||
$this->assertResult('', false);
|
||||
}
|
||||
|
||||
function testSingleLi() {
|
||||
public function testSingleLi()
|
||||
{
|
||||
$this->assertResult('<li />');
|
||||
}
|
||||
|
||||
function testSomeLi() {
|
||||
public function testSomeLi()
|
||||
{
|
||||
$this->assertResult('<li>asdf</li><li />');
|
||||
}
|
||||
|
||||
function testIllegal() {
|
||||
public function testIllegal()
|
||||
{
|
||||
// XXX actually this never gets triggered in practice
|
||||
$this->assertResult('<li /><b />', '<li /><li><b /></li>');
|
||||
}
|
||||
|
||||
function testOlAtBeginning() {
|
||||
public function testOlAtBeginning()
|
||||
{
|
||||
$this->assertResult('<ol />', '<li><ol /></li>');
|
||||
}
|
||||
|
||||
function testOlAtBeginningWithOtherJunk() {
|
||||
public function testOlAtBeginningWithOtherJunk()
|
||||
{
|
||||
$this->assertResult('<ol /><li />', '<li><ol /></li><li />');
|
||||
}
|
||||
|
||||
function testOlInMiddle() {
|
||||
public function testOlInMiddle()
|
||||
{
|
||||
$this->assertResult('<li>Foo</li><ol><li>Bar</li></ol>', '<li>Foo<ol><li>Bar</li></ol></li>');
|
||||
}
|
||||
|
||||
function testMultipleOl() {
|
||||
public function testMultipleOl()
|
||||
{
|
||||
$this->assertResult('<li /><ol /><ol />', '<li><ol /><ol /></li>');
|
||||
}
|
||||
|
||||
function testUlAtBeginning() {
|
||||
public function testUlAtBeginning()
|
||||
{
|
||||
$this->assertResult('<ul />', '<li><ul /></li>');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user