Merge "Revert "Make it possible to install extensions using Composer""
[mediawiki.git] / tests / phpunit / includes / media / FakeDimensionFile.php
blob7bc785e690b0e2aee31b3aa43f48323748d1780a
1 <?php
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() {
26 return '';