Merge "tests related to API block action and its gettoken"
[lhc/web/wiklou.git] / includes / filerepo / NullRepo.php
1 <?php
2 /**
3 * File repository with no files.
4 *
5 * @file
6 * @ingroup FileRepo
7 */
8
9 /**
10 * File repository with no files, for performance testing
11 * @ingroup FileRepo
12 */
13 class NullRepo extends FileRepo {
14 function __construct( $info ) {}
15
16 protected function assertWritableRepo() {
17 throw new MWException( get_class( $this ) . ': write operations are not supported.' );
18 }
19 }