3 use MediaWiki\Title\Title
;
5 class FakeDimensionFile
extends File
{
7 public $mustRender = false;
13 public function __construct( $dimensions, $mime = 'unknown/unknown' ) {
14 parent
::__construct( Title
::makeTitle( NS_FILE
, 'Test' ),
15 new NullRepo( null ) );
17 $this->dimensions
= $dimensions;
21 public function getWidth( $page = 1 ) {
22 return $this->dimensions
[0];
25 public function getHeight( $page = 1 ) {
26 return $this->dimensions
[1];
29 public function mustRender() {
30 return $this->mustRender
;
33 public function getPath() {
37 public function getMimeType() {