'foobar' ) ); } /** * @expectedException MWException */ function testFileRepoConstructionOptionNeedBackendKey() { $f = new FileRepo( array( 'name' => 'foobar' ) ); } function testFileRepoConstructionWithRequiredOptions() { $f = new FileRepo( array( 'name' => 'FileRepoTestRepository', 'backend' => 'local-backend', )); $this->assertInstanceOf( 'FileRepo', $f ); } }