/**
* @covers Html::element
+ * @covers Html::rawElement
+ * @covers Html::openElement
+ * @covers Html::closeElement
*/
public function testElementBasics() {
$this->assertEquals(
/**
* @covers Html::namespaceSelector
+ * @covers Html::namespaceSelectorOptions
*/
public function testNamespaceSelector() {
$this->assertEquals(
];
# <button> specific handling
- # see remarks on http://msdn.microsoft.com/en-us/library/ie/ms535211%28v=vs.85%29.aspx
+ # see remarks on https://msdn.microsoft.com/library/ms535211(v=vs.85).aspx
$cases[] = [ '<button type="submit"></button>',
'button', [ 'type' => 'submit' ],
'According to standard the default type is "submit". '
return $ret;
}
- /**
- * @covers Html::expandAttributes
- */
- public function testFormValidationBlacklist() {
- $this->assertEmpty(
- Html::expandAttributes( [
- 'min' => 1,
- 'max' => 100,
- 'pattern' => 'abc',
- 'required' => true,
- 'step' => 2
- ] ),
- 'Blacklist form validation attributes.'
- );
- $this->assertEquals(
- ' step="any"',
- Html::expandAttributes(
- [
- 'min' => 1,
- 'max' => 100,
- 'pattern' => 'abc',
- 'required' => true,
- 'step' => 'any'
- ],
- 'Allow special case "step=any".'
- )
- );
- }
-
public function testWrapperInput() {
$this->assertEquals(
'<input type="radio" value="testval" name="testname"/>',