3
class FileRepoTest extends MediaWikiTestCase {
6
* @expectedException MWException
8
function testFileRepoConstructionOptionCanNotBeNull() {
12
* @expectedException MWException
14
function testFileRepoConstructionOptionCanNotBeAnEmptyArray() {
15
$f = new FileRepo( array() );
18
* @expectedException MWException
20
function testFileRepoConstructionOptionNeedNameKey() {
21
$f = new FileRepo( array(
26
* @expectedException MWException
28
function testFileRepoConstructionOptionNeedBackendKey() {
29
$f = new FileRepo( array(
34
function testFileRepoConstructionWithRequiredOptions() {
35
$f = new FileRepo( array(
36
'name' => 'FileRepoTestRepository',
37
'backend' => 'local-backend',
39
$this->assertInstanceOf( 'FileRepo', $f );