$this->assertEquals(
'<img/>',
Html::element( 'img', null, '' ),
- 'No close tag for short-tag elements'
+ 'Self-closing tag for short-tag elements'
);
$this->assertEquals(
Html::element( 'element', [], '' ),
'Close tag for empty element (array, string)'
);
-
- $this->assertEquals(
- '<img/>',
- Html::element( 'img', null, '' ),
- 'Self-closing tag for short-tag elements'
- );
}
public function dataXmlMimeType() {
Html::expandAttributes( [ 'selected' ] ),
'Boolean attributes have no value when value is true (passed as numerical array)'
);
-
- $this->assertEquals(
- ' selected=""',
- Html::expandAttributes( [ 'selected' => true ] ),
- 'Boolean attributes have empty string value when value is true'
- );
}
/**