Merge "Document the block duration tooltip"
[lhc/web/wiklou.git] / tests / phpunit / includes / media / FakeDimensionFile.php
1 <?php
2
3 class FakeDimensionFile extends File {
4 public $mustRender = false;
5
6 public function __construct( $dimensions ) {
7 parent::__construct( Title::makeTitle( NS_FILE, 'Test' ),
8 new NullRepo( null ) );
9
10 $this->dimensions = $dimensions;
11 }
12
13 public function getWidth( $page = 1 ) {
14 return $this->dimensions[0];
15 }
16
17 public function getHeight( $page = 1 ) {
18 return $this->dimensions[1];
19 }
20
21 public function mustRender() {
22 return $this->mustRender;
23 }
24
25 public function getPath() {
26 return '';
27 }
28 }