TARTest.php 514 B

1234567891011121314151617181920212223
  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\TAR;
  10. class TARTest extends TestBase {
  11. protected function getExisting() {
  12. $dir = \OC::$SERVERROOT . '/tests/data';
  13. return new TAR($dir . '/data.tar.gz');
  14. }
  15. protected function getNew() {
  16. return new TAR(\OC::$server->getTempManager()->getTemporaryFile('.tar.gz'));
  17. }
  18. }