You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ZIPTest.php 517B

12345678910111213141516171819202122
  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(\OC::$server->getTempManager()->getTempBaseDir().'/newArchive.zip');
  17. }
  18. }