<?php
-class GIFHandlerTest extends MediaWikiTestCase {
- /** @var FSFileBackend */
- protected $backend;
+/**
+ * @group Media
+ */
+class GIFHandlerTest extends MediaWikiMediaTestCase {
+
/** @var GIFHandler */
protected $handler;
- /** @var FSRepo */
- protected $repo;
- /** @var string */
- protected $filePath;
protected function setUp() {
parent::setUp();
- $this->filePath = __DIR__ . '/../../data/media';
- $this->backend = new FSFileBackend( array(
- 'name' => 'localtesting',
- 'wikiId' => wfWikiId(),
- 'containerPaths' => array( 'data' => $this->filePath )
- ) );
- $this->repo = new FSRepo( array(
- 'name' => 'temp',
- 'url' => 'http://localhost/thumbtest',
- 'backend' => $this->backend
- ) );
$this->handler = new GIFHandler();
}
),
);
}
-
- private function dataFile( $name, $type ) {
- return new UnregisteredLocalFile( false, $this->repo,
- "mwstore://localtesting/data/$name", $type );
- }
}