public function testPerformsShallowMergeOfCustomContextOptions()
{
$res = $this->getSendResult(['stream_context' => ['http' => ['request_fulluri' => true, 'method' => 'HEAD'], 'socket' => ['bindto' => '127.0.0.1:0'], 'ssl' => ['verify_peer' => false]]]);
$opts = stream_context_get_options($res->getBody()->detach());
$this->assertEquals('HEAD', $opts['http']['method']);
$this->assertTrue($opts['http']['request_fulluri']);
$this->assertEquals('127.0.0.1:0', $opts['socket']['bindto']);
$this->assertFalse($opts['ssl']['verify_peer']);
}