tar.php 663 B

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