3 abstract class ApiFormatTestBase
extends ApiTestCase
{
4 protected function apiRequest( $format, $params, $data = null ) {
5 $data = parent
::doApiRequest( $params, $data, true );
9 $printer = $module->createPrinterByName( $format );
10 $printer->setUnescapeAmps( false );
12 $printer->initPrinter( false );
16 $out = ob_get_clean();
18 $printer->closePrinter();