1
0

zip.php 601 B

1234567891011121314151617181920212223242526
  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. class Test_Archive_ZIP extends Test_Archive {
  9. protected function setUp() {
  10. parent::setUp();
  11. if (OC_Util::runningOnWindows()) {
  12. $this->markTestSkipped('[Windows] ');
  13. }
  14. }
  15. protected function getExisting() {
  16. $dir = OC::$SERVERROOT . '/tests/data';
  17. return new OC_Archive_ZIP($dir . '/data.zip');
  18. }
  19. protected function getNew() {
  20. return new OC_Archive_ZIP(OCP\Files::tmpFile('.zip'));
  21. }
  22. }