objectcache: add "staleTTL" into WANObjectCache::getWithSetCallback()
[lhc/web/wiklou.git] / tests / phpunit / includes / media / FakeDimensionFile.php
index 7bc785e..81e820e 100644 (file)
@@ -1,13 +1,19 @@
 <?php
 
+/**
+ * @group Media
+ */
 class FakeDimensionFile extends File {
        public $mustRender = false;
+       public $mime;
+       public $dimensions;
 
-       public function __construct( $dimensions ) {
+       public function __construct( $dimensions, $mime = 'unknown/unknown' ) {
                parent::__construct( Title::makeTitle( NS_FILE, 'Test' ),
                        new NullRepo( null ) );
 
                $this->dimensions = $dimensions;
+               $this->mime = $mime;
        }
 
        public function getWidth( $page = 1 ) {
@@ -25,4 +31,8 @@ class FakeDimensionFile extends File {
        public function getPath() {
                return '';
        }
+
+       public function getMimeType() {
+               return $this->mime;
+       }
 }