DummyEncryptionWrapper.php 473 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-only
  6. */
  7. namespace Test\Files\Stream;
  8. class DummyEncryptionWrapper extends \OC\Files\Stream\Encryption {
  9. /**
  10. * simulate a non-seekable stream wrapper by always return false
  11. *
  12. * @param int $position
  13. * @return bool
  14. */
  15. protected function parentStreamSeek($position) {
  16. return false;
  17. }
  18. }