X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlTest.php;h=830a7be2fdf61e3629e06bb580ca7546865321cf;hb=36171312ef0e1b9acdea876f300dca8f3ad9982e;hp=c5797c4f60d3095f688ccb2b5d2a5d2b89f46abe;hpb=448b1b166aa322c3e1d3aeb30bde65fdc26257bd;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/HtmlTest.php b/tests/phpunit/includes/HtmlTest.php index c5797c4f60..830a7be2fd 100644 --- a/tests/phpunit/includes/HtmlTest.php +++ b/tests/phpunit/includes/HtmlTest.php @@ -103,7 +103,7 @@ class HtmlTest extends MediaWikiTestCase { */ public function testExpandAttributesSkipsNullAndFalse() { - ### EMPTY ######## + # ## EMPTY ######## $this->assertEmpty( Html::expandAttributes( array( 'foo' => null ) ), 'skip keys with null value' @@ -187,7 +187,7 @@ class HtmlTest extends MediaWikiTestCase { * @covers Html::expandAttributes */ public function testExpandAttributesVariousExpansions() { - ### NOT EMPTY #### + # ## NOT EMPTY #### $this->assertEquals( ' empty_string=""', Html::expandAttributes( array( 'empty_string' => '' ) ), @@ -240,7 +240,7 @@ class HtmlTest extends MediaWikiTestCase { * @covers Html::expandAttributes */ public function testExpandAttributesListValueAttributes() { - ### STRING VALUES + # ## STRING VALUES $this->assertEquals( ' class="redundant spaces here"', Html::expandAttributes( array( 'class' => ' redundant spaces here ' ) ), @@ -251,7 +251,7 @@ class HtmlTest extends MediaWikiTestCase { Html::expandAttributes( array( 'class' => 'foo bar foo bar bar' ) ), 'Normalization should remove duplicates in string-lists' ); - ### "EMPTY" ARRAY VALUES + # ## "EMPTY" ARRAY VALUES $this->assertEquals( ' class=""', Html::expandAttributes( array( 'class' => array() ) ), @@ -262,7 +262,7 @@ class HtmlTest extends MediaWikiTestCase { Html::expandAttributes( array( 'class' => array( null, '', ' ', ' ' ) ) ), 'Array with null, empty string and spaces' ); - ### NON-EMPTY ARRAY VALUES + # ## NON-EMPTY ARRAY VALUES $this->assertEquals( ' class="foo bar"', Html::expandAttributes( array( 'class' => array( @@ -528,7 +528,7 @@ class HtmlTest extends MediaWikiTestCase { # Will be mapped to Html::element() $cases = array(); - ### Generic cases, match $attribDefault static array + # ## Generic cases, match $attribDefault static array $cases[] = array( '', 'area', array( 'shape' => 'rect' ) ); @@ -602,7 +602,7 @@ class HtmlTest extends MediaWikiTestCase { 'textarea', array( 'wrap' => 'soft' ) ); - ### SPECIFIC CASES + # ## SPECIFIC CASES # $cases[] = array( '',