3 class FakeDimensionFile
extends File
{
4 public $mustRender = false;
8 public function __construct( $dimensions, $mime = 'unknown/unknown' ) {
9 parent
::__construct( Title
::makeTitle( NS_FILE
, 'Test' ),
10 new NullRepo( null ) );
12 $this->dimensions
= $dimensions;
16 public function getWidth( $page = 1 ) {
17 return $this->dimensions
[0];
20 public function getHeight( $page = 1 ) {
21 return $this->dimensions
[1];
24 public function mustRender() {
25 return $this->mustRender
;
28 public function getPath() {
32 public function getMimeType() {