1
0

TARTest.php 505 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace Test\Archive;
  8. use OC\Archive\TAR;
  9. class TARTest extends TestBase {
  10. protected function getExisting() {
  11. $dir = \OC::$SERVERROOT . '/tests/data';
  12. return new TAR($dir . '/data.tar.gz');
  13. }
  14. protected function getNew() {
  15. return new TAR(\OC::$server->getTempManager()->getTemporaryFile('.tar.gz'));
  16. }
  17. }