1
0

ZIPTest.php 511 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\ZIP;
  9. class ZIPTest extends TestBase {
  10. protected function getExisting() {
  11. $dir = \OC::$SERVERROOT . '/tests/data';
  12. return new ZIP($dir . '/data.zip');
  13. }
  14. protected function getNew() {
  15. return new ZIP(\OC::$server->getTempManager()->getTempBaseDir() . '/newArchive.zip');
  16. }
  17. }