3 abstract class ApiFormatTestBase
extends ApiTestCase
{
6 * @param string $format
12 protected function apiRequest( $format, $params, $data = null ) {
13 $data = parent
::doApiRequest( $params, $data, true );
15 /** @var ApiMain $module */
18 $printer = $module->createPrinterByName( $format );
19 $printer->setUnescapeAmps( false );
21 $printer->initPrinter( false );
25 $out = ob_get_clean();
27 $printer->closePrinter();