From 48d6724a6fbf8679f9968054bbb5100fd55b93ac Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Fri, 19 Dec 2014 00:54:33 +0100 Subject: HHVM sets stream meta datum wrapper_type to 'File' instead of 'user-space'. --- tests/lib/files/storage/wrapper/quota.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- cgit v1.2.3