mediawiki-extensions-PageIm.../tests/phpunit/ApiQueryPageImagesProxyMock.php
jdlrobson fcc96696d5 Fix remaining php sniffs
* Separate the ApiQueryPageImages mock into its own file

Bug: T170583
Change-Id: I3db5de11618f952eb7974c456445eaa1d5e4e6a4
2018-03-05 18:49:11 +01:00

30 lines
533 B
PHP

<?php
namespace PageImages\Tests;
use ApiPageSet;
use ApiQueryPageImages;
class ApiQueryPageImagesProxyMock extends ApiQueryPageImages {
/** @inheritDoc */
public function __construct( ApiPageSet $pageSet ) {
$this->pageSet = $pageSet;
}
/** @inheritDoc */
public function getPageSet() {
return $this->pageSet;
}
/** @inheritDoc */
public function getTitles() {
return parent::getTitles();
}
/** @inheritDoc */
public static function getPropNames( $license ) {
return parent::getPropNames( $license );
}
}