'foobar' ] ); } /** * @expectedException MWException * @covers FileRepo::__construct */ public function testFileRepoConstructionOptionNeedBackendKey() { new FileRepo( [ 'name' => 'foobar' ] ); } /** * @covers FileRepo::__construct */ public function testFileRepoConstructionWithRequiredOptions() { $f = new FileRepo( [ 'name' => 'FileRepoTestRepository', 'backend' => new FSFileBackend( [ 'name' => 'local-testing', 'wikiId' => 'test_wiki', 'containerPaths' => [] ] ) ] ); $this->assertInstanceOf( 'FileRepo', $f ); } }