Index: trunk/phase3/tests/phpunit/includes/HtmlTest.php |
— | — | @@ -26,15 +26,15 @@ |
27 | 27 | |
28 | 28 | ### EMPTY ######## |
29 | 29 | $this->AssertEmpty( |
30 | | - Html::expandAttributes( array( 'foo'=>null) ), |
| 30 | + Html::expandAttributes( array( 'foo' => null ) ), |
31 | 31 | 'skip keys with null value' |
32 | 32 | ); |
33 | 33 | $this->AssertEmpty( |
34 | | - Html::expandAttributes( array( 'foo'=>false) ), |
| 34 | + Html::expandAttributes( array( 'foo' => false ) ), |
35 | 35 | 'skip keys with false value' |
36 | 36 | ); |
37 | 37 | $this->AssertNotEmpty( |
38 | | - Html::expandAttributes( array( 'foo'=>'') ), |
| 38 | + Html::expandAttributes( array( 'foo' => '' ) ), |
39 | 39 | 'keep keys with an empty string' |
40 | 40 | ); |
41 | 41 | } |
— | — | @@ -43,18 +43,18 @@ |
44 | 44 | global $wgHtml5; |
45 | 45 | $this->AssertEquals( |
46 | 46 | '', |
47 | | - Html::expandAttributes( array( 'selected'=>false) ), |
| 47 | + Html::expandAttributes( array( 'selected' => false ) ), |
48 | 48 | 'Boolean attributes do not generates output when value is false' |
49 | 49 | ); |
50 | 50 | $this->AssertEquals( |
51 | 51 | '', |
52 | | - Html::expandAttributes( array( 'selected'=>null) ), |
| 52 | + Html::expandAttributes( array( 'selected' => null ) ), |
53 | 53 | 'Boolean attributes do not generates output when value is null' |
54 | 54 | ); |
55 | 55 | |
56 | 56 | $this->AssertEquals( |
57 | 57 | $wgHtml5 ? ' selected=""' : ' selected="selected"', |
58 | | - Html::expandAttributes( array( 'selected'=>true ) ), |
| 58 | + Html::expandAttributes( array( 'selected' => true ) ), |
59 | 59 | 'Boolean attributes skip value output' |
60 | 60 | ); |
61 | 61 | $this->AssertEquals( |
— | — | @@ -72,22 +72,22 @@ |
73 | 73 | ### NOT EMPTY #### |
74 | 74 | $this->AssertEquals( |
75 | 75 | ' empty_string=""', |
76 | | - Html::expandAttributes( array( 'empty_string'=>'') ), |
| 76 | + Html::expandAttributes( array( 'empty_string' => '' ) ), |
77 | 77 | 'Value with an empty string' |
78 | 78 | ); |
79 | 79 | $this->AssertEquals( |
80 | 80 | ' key="value"', |
81 | | - Html::expandAttributes( array( 'key'=>'value') ), |
| 81 | + Html::expandAttributes( array( 'key' => 'value' ) ), |
82 | 82 | 'Value is a string' |
83 | 83 | ); |
84 | 84 | $this->AssertEquals( |
85 | 85 | ' one="1"', |
86 | | - Html::expandAttributes( array( 'one'=>1) ), |
| 86 | + Html::expandAttributes( array( 'one' => 1 ) ), |
87 | 87 | 'Value is a numeric one' |
88 | 88 | ); |
89 | 89 | $this->AssertEquals( |
90 | 90 | ' zero="0"', |
91 | | - Html::expandAttributes( array( 'zero'=>0) ), |
| 91 | + Html::expandAttributes( array( 'zero' => 0 ) ), |
92 | 92 | 'Value is a numeric zero' |
93 | 93 | ); |
94 | 94 | } |