4 class HTMLFormTest
extends MediaWikiTestCase
{
5 public function testGetHTML_empty() {
6 $form = new HTMLForm( [] );
7 $form->setTitle( Title
::newFromText( 'Foo' ) );
9 $html = $form->getHTML( false );
10 $this->assertRegExp( '/<form\b/', $html );
14 * @expectedException LogicException
16 public function testGetHTML_noPrepare() {
17 $form = new HTMLForm( [] );
18 $form->setTitle( Title
::newFromText( 'Foo' ) );
19 $form->getHTML( false );