markTestSkipped('Test skipped on no cURL extension'); } $client = new LambdaClient([ 'region' => 'us-east-1', 'version' => 'latest' ]); $list = $client->getHandlerList(); $list->setHandler(function ($command, $request) { $this->assertArraySubset( [ 'curl' => [ CURLOPT_TCP_KEEPALIVE => 1, ], ], $command['@http'] ); return Promise\Create::promiseFor(new Result([])); }); $client->listFunctions(); } }