6 class FakeDimensionFile
extends File
{
7 public $mustRender = false;
11 public function __construct( $dimensions, $mime = 'unknown/unknown' ) {
12 parent
::__construct( Title
::makeTitle( NS_FILE
, 'Test' ),
13 new NullRepo( null ) );
15 $this->dimensions
= $dimensions;
19 public function getWidth( $page = 1 ) {
20 return $this->dimensions
[0];
23 public function getHeight( $page = 1 ) {
24 return $this->dimensions
[1];
27 public function mustRender() {
28 return $this->mustRender
;
31 public function getPath() {
35 public function getMimeType() {