diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2016-05-03 08:37:01 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-05-03 08:37:01 +0200 |
commit | adf7e7295ed94a04bd9fcb056b81e664b45b4f07 (patch) | |
tree | f95b0dcaa8c4f0954237bacbc01c81a7db2dc3aa /tests | |
parent | a72e6a2dac82c90582d478ead1f5518fc7299f80 (diff) | |
parent | c96ed5c4ce27d4ab62cf483193d311fed1c37556 (diff) | |
download | nextcloud-server-adf7e7295ed94a04bd9fcb056b81e664b45b4f07.tar.gz nextcloud-server-adf7e7295ed94a04bd9fcb056b81e664b45b4f07.zip |
Merge pull request #24375 from owncloud/archive_move
Move OC_Archive to \OC\Archive and PSR-4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/archive/tar.php | 6 | ||||
-rw-r--r-- | tests/lib/archive/zip.php | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/lib/archive/tar.php b/tests/lib/archive/tar.php index 43157e2054d..2d20bb4c3b1 100644 --- a/tests/lib/archive/tar.php +++ b/tests/lib/archive/tar.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +use OC\Archive\TAR; + class Test_Archive_TAR extends Test_Archive { protected function setUp() { parent::setUp(); @@ -17,10 +19,10 @@ class Test_Archive_TAR extends Test_Archive { protected function getExisting() { $dir = OC::$SERVERROOT . '/tests/data'; - return new OC_Archive_TAR($dir . '/data.tar.gz'); + return new TAR($dir . '/data.tar.gz'); } protected function getNew() { - return new OC_Archive_TAR(OCP\Files::tmpFile('.tar.gz')); + return new TAR(OCP\Files::tmpFile('.tar.gz')); } } diff --git a/tests/lib/archive/zip.php b/tests/lib/archive/zip.php index 09ea5d7d27c..2f4c9cace1d 100644 --- a/tests/lib/archive/zip.php +++ b/tests/lib/archive/zip.php @@ -6,6 +6,8 @@ * See the COPYING-README file. */ +use OC\Archive\ZIP; + class Test_Archive_ZIP extends Test_Archive { protected function setUp() { parent::setUp(); @@ -17,10 +19,10 @@ class Test_Archive_ZIP extends Test_Archive { protected function getExisting() { $dir = OC::$SERVERROOT . '/tests/data'; - return new OC_Archive_ZIP($dir . '/data.zip'); + return new ZIP($dir . '/data.zip'); } protected function getNew() { - return new OC_Archive_ZIP(OCP\Files::tmpFile('.zip')); + return new ZIP(OCP\Files::tmpFile('.zip')); } } |