Fix test bootstrap in PHP < 5.5

This commit is contained in:
Justin Hileman
2016-07-30 23:17:51 -07:00
parent 94a72ec3d2
commit 0803fa688b
+4 -3
View File
@@ -56,7 +56,7 @@ class TestStream
*/ */
public function stream_stat() public function stream_stat()
{ {
return []; return array();
} }
/** /**
@@ -86,5 +86,6 @@ class TestStream
} }
} }
stream_wrapper_register('test', TestStream::class) if (!stream_wrapper_register('test', 'TestStream')) {
|| die('Failed to register protocol'); die('Failed to register protocol');
}