Get better error message for duplicate names in MagicWordArray
[lhc/web/wiklou.git] / tests / phpunit / includes / media / FakeDimensionFile.php
1 <?php
2
3 /**
4 * @group Media
5 */
6 class FakeDimensionFile extends File {
7 public $mustRender = false;
8
9 public function __construct( $dimensions ) {
10 parent::__construct( Title::makeTitle( NS_FILE, 'Test' ),
11 new NullRepo( null ) );
12
13 $this->dimensions = $dimensions;
14 }
15
16 public function getWidth( $page = 1 ) {
17 return $this->dimensions[0];
18 }
19
20 public function getHeight( $page = 1 ) {
21 return $this->dimensions[1];
22 }
23
24 public function mustRender() {
25 return $this->mustRender;
26 }
27
28 public function getPath() {
29 return '';
30 }
31 }