zip.php 494 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. require_once 'archive.php';
  9. class Test_Archive_ZIP extends Test_Archive {
  10. protected function getExisting() {
  11. $dir = OC::$SERVERROOT . '/tests/data';
  12. return new OC_Archive_ZIP($dir . '/data.zip');
  13. }
  14. protected function getNew() {
  15. return new OC_Archive_ZIP(OCP\Files::tmpFile('.zip'));
  16. }
  17. }