summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-05-03 08:37:01 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-05-03 08:37:01 +0200
commitadf7e7295ed94a04bd9fcb056b81e664b45b4f07 (patch)
treef95b0dcaa8c4f0954237bacbc01c81a7db2dc3aa /tests
parenta72e6a2dac82c90582d478ead1f5518fc7299f80 (diff)
parentc96ed5c4ce27d4ab62cf483193d311fed1c37556 (diff)
downloadnextcloud-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.php6
-rw-r--r--tests/lib/archive/zip.php6
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'));
}
}