Localisation updates from https://translatewiki.net.
[mediawiki.git] / tests / phpunit / mocks / filerepo / MockLocalRepo.php
blobb2c51ca49d06294166f48068271019d66706f10d
1 <?php
3 /**
4 * Class simulating a local file repo.
6 * @ingroup FileRepo
7 * @since 1.28
8 */
9 class MockLocalRepo extends LocalRepo {
10 public function getLocalCopy( $virtualUrl ) {
11 return new MockFSFile( "Fake path for $virtualUrl" );
14 public function getLocalReference( $virtualUrl ) {
15 return new MockFSFile( "Fake path for $virtualUrl" );
18 public function getFileProps( $virtualUrl ) {
19 $fsFile = $this->getLocalReference( $virtualUrl );
20 return $fsFile->getProps();