6 class FakeDimensionFile
extends File
{
7 public $mustRender = false;
9 public function __construct( $dimensions ) {
10 parent
::__construct( Title
::makeTitle( NS_FILE
, 'Test' ),
11 new NullRepo( null ) );
13 $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() {