1
0

tar.php 648 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_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. }