diff options
author | Andreas Fischer <bantu@owncloud.com> | 2014-12-19 00:54:33 +0100 |
---|---|---|
committer | Andreas Fischer <bantu@owncloud.com> | 2014-12-19 00:58:37 +0100 |
commit | 48d6724a6fbf8679f9968054bbb5100fd55b93ac (patch) | |
tree | 629d6dcd642a06a01280ad9127e5c6fa531b0a9c | |
parent | 92b825c71b3a35e306d12ae99fc68b81303f74bf (diff) | |
download | nextcloud-server-48d6724a6fbf8679f9968054bbb5100fd55b93ac.tar.gz nextcloud-server-48d6724a6fbf8679f9968054bbb5100fd55b93ac.zip |
HHVM sets stream meta datum wrapper_type to 'File' instead of 'user-space'.
-rw-r--r-- | tests/lib/files/storage/wrapper/quota.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/lib/files/storage/wrapper/quota.php b/tests/lib/files/storage/wrapper/quota.php index 9e6b1c85a95..dc4de4697db 100644 --- a/tests/lib/files/storage/wrapper/quota.php +++ b/tests/lib/files/storage/wrapper/quota.php @@ -136,7 +136,8 @@ class Quota extends \Test\Files\Storage\Storage { $instance = $this->getLimitedStorage(9); $stream = $instance->fopen('foo', 'w+'); $meta = stream_get_meta_data($stream); - $this->assertEquals('user-space', $meta['wrapper_type']); + $expected_type = defined('HHVM_VERSION') ? 'File' : 'user-space'; + $this->assertEquals($expected_type, $meta['wrapper_type']); fclose($stream); } |