13 $form->setTitle( Title::newFromText(
'Foo' ) );
20 $html = $form->getHTML(
false );
21 $this->assertStringStartsWith(
'<form ',
$html );
29 $form->getHTML(
false );
34 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
39 $form->setAutocomplete(
null );
40 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
46 $form->setAutocomplete(
false );
47 $this->assertNotContains(
'autocomplete', $form->wrapForm(
'' ) );
52 $form->setAutocomplete(
'off' );
53 $this->assertContains(
' autocomplete="off"', $form->wrapForm(
'' ) );
59 $form->setPreText( $preText );
60 $this->assertSame( $preText, $form->getPreText() );
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