MediaWiki
REL1_19
|
00001 <?php 00002 00003 class FileRepoTest extends MediaWikiTestCase { 00004 00008 function testFileRepoConstructionOptionCanNotBeNull() { 00009 $f = new FileRepo(); 00010 } 00014 function testFileRepoConstructionOptionCanNotBeAnEmptyArray() { 00015 $f = new FileRepo( array() ); 00016 } 00020 function testFileRepoConstructionOptionNeedNameKey() { 00021 $f = new FileRepo( array( 00022 'backend' => 'foobar' 00023 ) ); 00024 } 00028 function testFileRepoConstructionOptionNeedBackendKey() { 00029 $f = new FileRepo( array( 00030 'name' => 'foobar' 00031 ) ); 00032 } 00033 00034 function testFileRepoConstructionWithRequiredOptions() { 00035 $f = new FileRepo( array( 00036 'name' => 'FileRepoTestRepository', 00037 'backend' => 'local-backend', 00038 )); 00039 $this->assertInstanceOf( 'FileRepo', $f ); 00040 } 00041 }