tar.php 648 B

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