Merge "Don't fallback from uk to ru"
[lhc/web/wiklou.git] / tests / phpunit / mocks / filerepo / MockLocalRepo.php
1 <?php
2
3 /**
4 * Class simulating a local file repo.
5 *
6 * @ingroup FileRepo
7 * @since 1.28
8 */
9 class MockLocalRepo extends LocalRepo {
10 function getLocalCopy( $virtualUrl ) {
11 return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
12 }
13
14 function getLocalReference( $virtualUrl ) {
15 return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
16 }
17
18 function getFileProps( $virtualUrl ) {
19 $fsFile = $this->getLocalReference( $virtualUrl );
20
21 return $fsFile->getProps();
22 }
23 }