public function testAddsTimeout() { $res = $this->getSendResult(['stream' => true, 'timeout' => 200]); $opts = stream_context_get_options($res->getBody()->detach()); $this->assertEquals(200, $opts['http']['timeout']); }