Merge "Added release notes for 'ContentHandler::runLegacyHooks' removal"
[mediawiki.git] / tests / phpunit / mocks / filerepo / MockLocalRepo.php
blobeeaf05a0aae866eca158b54d1599b39cbc76b9ab
1 <?php
3 /**
4 * Class simulating a local file repo.
6 * @ingroup FileRepo
7 * @since 1.28
8 */
9 class MockLocalRepo extends LocalRepo {
10 function getLocalCopy( $virtualUrl ) {
11 return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
14 function getLocalReference( $virtualUrl ) {
15 return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
18 function getFileProps( $virtualUrl ) {
19 $fsFile = $this->getLocalReference( $virtualUrl );
21 return $fsFile->getProps();