diff options
Diffstat (limited to 'tests/phpunit/includes/api/format/ApiFormatTestBase.php')
-rw-r--r-- | tests/phpunit/includes/api/format/ApiFormatTestBase.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/phpunit/includes/api/format/ApiFormatTestBase.php b/tests/phpunit/includes/api/format/ApiFormatTestBase.php deleted file mode 100644 index a0b7b020..00000000 --- a/tests/phpunit/includes/api/format/ApiFormatTestBase.php +++ /dev/null @@ -1,22 +0,0 @@ -<?php - -abstract class ApiFormatTestBase extends ApiTestCase { - protected function apiRequest( $format, $params, $data = null ) { - $data = parent::doApiRequest( $params, $data, true ); - - $module = $data[3]; - - $printer = $module->createPrinterByName( $format ); - $printer->setUnescapeAmps( false ); - - $printer->initPrinter( false ); - - ob_start(); - $printer->execute(); - $out = ob_get_clean(); - - $printer->closePrinter(); - - return $out; - } -} |