Support offsets in prefix searching
[mediawiki.git] / tests / phpunit / includes / media / FakeDimensionFile.php
blob4b8f213eaa72b9db07964ff857401d6b83be7a25
1 <?php
3 /**
4 * @group Media
5 */
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() {
29 return '';