Go to the documentation of this file.
10 protected function setUp() {
14 $filePath = __DIR__ .
'/../../data/media';
16 'name' =>
'localtesting',
17 'wikiId' => wfWikiId(),
18 'containerPaths' =>
array(
'data' => $filePath )
22 'url' =>
'http://localhost/thumbtest',
23 'backend' => $this->backend
33 $file = $this->
dataFile(
'broken_exif_date.jpg',
'image/jpeg' );
36 $meta =
$file->formatMetadata();
37 $this->assertNotEquals(
false, $meta,
'Valid metadata extracted' );
40 $this->assertArrayHasKey(
'visible', $meta );
42 foreach ( $meta[
'visible']
as $i => $data ) {
43 if ( $data[
'id'] ==
'exif-datetimeoriginal' ) {
47 $this->assertNotNull( $dateIndex,
'Date entry exists in metadata' );
48 $this->assertEquals(
'0000:01:00 00:02:27',
49 $meta[
'visible'][$dateIndex][
'value'],
50 'File with invalid date metadata (bug 29471)' );
61 $this->assertEquals( $expected, $actual );
67 array( 1, 2, 3 ),
'ul',
false,
false,
68 "<ul><li>1</li>\n<li>2</li>\n<li>3</li></ul>",
71 array( 1, 2, 3 ),
'ol',
false,
false,
72 "<ol><li>1</li>\n<li>2</li>\n<li>3</li></ol>",
75 array( 1, 2, 3 ),
'ul',
true,
false,
79 array( 1, 2, 3 ),
'ol',
true,
false,
88 "mwstore://localtesting/data/$name",
$type );
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
A repository for files accessible via the local filesystem.
A file object referring to either a standalone local file, or a file in a local repository with no da...
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
Allows to change the fields on the form that will be generated $name
if(PHP_SAPI !='cli') $file
Class for a file system (FS) based file backend.
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such as