ZIPTest.php 479 B

123456789101112131415161718192021222324
  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. namespace Test\Archive;
  9. use OC\Archive\ZIP;
  10. class ZIPTest extends TestBase {
  11. protected function getExisting() {
  12. $dir = \OC::$SERVERROOT . '/tests/data';
  13. return new ZIP($dir . '/data.zip');
  14. }
  15. protected function getNew() {
  16. return new ZIP(\OCP\Files::tmpFile('.zip'));
  17. }
  18. }