14 $form->setTitle( Title::newFromText(
'Foo' ) );
21 $html = $form->getHTML(
false );
22 $this->assertStringStartsWith(
'<form ',
$html );
30 $form->getHTML(
false );
35 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
40 $form->setAutocomplete(
null );
41 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
47 $form->setAutocomplete(
false );
48 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
53 $form->setAutocomplete(
'off' );
54 $this->assertContains(
' autocomplete="off"', $form->wrapForm(
'' ) );
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses & $html