1--TEST--
2Basic test for stream_context_set_options()
3--FILE--
4<?php
5$context = stream_context_create();
6
7$options = [
8    'http' => [
9        'protocol_version' => 1.1,
10        'user_agent' => 'PHPT Agent',
11    ],
12];
13var_dump(stream_context_set_options($context, $options));
14
15var_dump(stream_context_get_options($context));
16?>
17--EXPECT--
18bool(true)
19array(1) {
20  ["http"]=>
21  array(2) {
22    ["protocol_version"]=>
23    float(1.1)
24    ["user_agent"]=>
25    string(10) "PHPT Agent"
26  }
27}
28