MediaWiki  1.23.12
FileRepoTest.php
Go to the documentation of this file.
1 <?php
2 
4 
10  new FileRepo();
11  }
12 
18  new FileRepo( array() );
19  }
20 
26  new FileRepo( array(
27  'backend' => 'foobar'
28  ) );
29  }
30 
36  new FileRepo( array(
37  'name' => 'foobar'
38  ) );
39  }
40 
45  $f = new FileRepo( array(
46  'name' => 'FileRepoTestRepository',
47  'backend' => new FSFileBackend( array(
48  'name' => 'local-testing',
49  'wikiId' => 'test_wiki',
50  'containerPaths' => array()
51  ) )
52  ) );
53  $this->assertInstanceOf( 'FileRepo', $f );
54  }
55 }
php
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
Definition: skin.txt:62
$f
$f
Definition: UtfNormalTest2.php:38
FileRepo
Base class for file repositories.
Definition: FileRepo.php:37
FileRepoTest\testFileRepoConstructionOptionCanNotBeNull
testFileRepoConstructionOptionCanNotBeNull()
@expectedException MWException @covers FileRepo::__construct
Definition: FileRepoTest.php:9
MediaWikiTestCase
Definition: MediaWikiTestCase.php:6
array
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
FileRepoTest\testFileRepoConstructionOptionNeedNameKey
testFileRepoConstructionOptionNeedNameKey()
@expectedException MWException @covers FileRepo::__construct
Definition: FileRepoTest.php:25
FileRepoTest
Definition: FileRepoTest.php:3
FSFileBackend
Class for a file system (FS) based file backend.
Definition: FSFileBackend.php:41
FileRepoTest\testFileRepoConstructionOptionCanNotBeAnEmptyArray
testFileRepoConstructionOptionCanNotBeAnEmptyArray()
@expectedException MWException @covers FileRepo::__construct
Definition: FileRepoTest.php:17
FileRepoTest\testFileRepoConstructionOptionNeedBackendKey
testFileRepoConstructionOptionNeedBackendKey()
@expectedException MWException @covers FileRepo::__construct
Definition: FileRepoTest.php:35
FileRepoTest\testFileRepoConstructionWithRequiredOptions
testFileRepoConstructionWithRequiredOptions()
@covers FileRepo::__construct
Definition: FileRepoTest.php:44