setTitle( Title::newMainPage() ); $context->setOutput( $out ); $form = new HTMLForm( [], $context ); $form->setTitle( Title::makeTitle( NS_MAIN, 'Foo' ) ); return $form; } public function testGetHTML_empty() { $form = $this->newInstance(); $form->prepareForm(); $html = $form->getHTML( false ); $this->assertStringStartsWith( '