diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2014-04-25 06:26:49 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2014-04-25 06:26:49 +0200 |
commit | 2e44b49a2db3026050b136de9b00f749dd3ff939 (patch) | |
tree | ef048f4db79a93c25cfc86319264aa7ae2a4ae0b /tests/phpunit/includes/api/generateRandomImages.php | |
parent | 9441dde8bfb95277df073717ed7817dced40f948 (diff) |
Update to MediaWiki 1.22.6
Diffstat (limited to 'tests/phpunit/includes/api/generateRandomImages.php')
-rw-r--r-- | tests/phpunit/includes/api/generateRandomImages.php | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/tests/phpunit/includes/api/generateRandomImages.php b/tests/phpunit/includes/api/generateRandomImages.php deleted file mode 100644 index 87f5c4c0..00000000 --- a/tests/phpunit/includes/api/generateRandomImages.php +++ /dev/null @@ -1,46 +0,0 @@ -<?php -/** - * Bootstrapping for test image file generation - * - * @file - */ - -// Start up MediaWiki in command-line mode -require_once __DIR__ . "/../../../../maintenance/Maintenance.php"; -require __DIR__ . "/RandomImageGenerator.php"; - -class GenerateRandomImages extends Maintenance { - - public function getDbType() { - return Maintenance::DB_NONE; - } - - public function execute() { - - $getOptSpec = array( - 'dictionaryFile::', - 'minWidth::', - 'maxWidth::', - 'minHeight::', - 'maxHeight::', - 'shapesToDraw::', - 'shape::', - - 'number::', - 'format::' - ); - $options = getopt( null, $getOptSpec ); - - $format = isset( $options['format'] ) ? $options['format'] : 'jpg'; - unset( $options['format'] ); - - $number = isset( $options['number'] ) ? intval( $options['number'] ) : 10; - unset( $options['number'] ); - - $randomImageGenerator = new RandomImageGenerator( $options ); - $randomImageGenerator->writeImages( $number, $format ); - } -} - -$maintClass = 'GenerateRandomImages'; -require RUN_MAINTENANCE_IF_MAIN; |