3 class FakeDimensionFile
extends File
{
4 public $mustRender = false;
6 public function __construct( $dimensions ) {
7 parent
::__construct( Title
::makeTitle( NS_FILE
, 'Test' ),
8 new NullRepo( null ) );
10 $this->dimensions
= $dimensions;
13 public function getWidth( $page = 1 ) {
14 return $this->dimensions
[0];
17 public function getHeight( $page = 1 ) {
18 return $this->dimensions
[1];
21 public function mustRender() {
22 return $this->mustRender
;
25 public function getPath() {