本文整理汇总了PHP中Illuminate\Http\Response::getWrappedObject方法的典型用法代码示例。如果您正苦于以下问题:PHP Response::getWrappedObject方法的具体用法?PHP Response::getWrappedObject怎么用?PHP Response::getWrappedObject使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Http\Response
的用法示例。
在下文中一共展示了Response::getWrappedObject方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
function it_should_set_response_time_to_response_header(Request $req, Response $res, ResponseHeaderBag $bag)
{
$res->headers = $bag;
static::$timer->getStartMilliseconds()->willReturn(1426009224940.0);
static::$timer->getEndMilliseconds()->willReturn(1426009226260.0);
$bag->set('X-Response-Time', '1320ms', false)->shouldBeCalled();
$next = function ($req) use($res) {
return $res->getWrappedObject();
};
$this->handle($req, $next)->shouldReturn($res);
}
示例2: function
function it_should_set_response_time_to_response_header(Request $req, Response $res, ResponseHeaderBag $bag)
{
$res->headers = $bag;
$uuid = '25769c6c-d34d-4bfe-ba98-e0ee856f3e7a';
static::$generator->getV4Uuid()->willReturn($uuid);
$req->merge(['request-id' => $uuid])->shouldBeCalled();
$bag->set('Request-Id', $uuid, false)->shouldBeCalled();
$next = function ($req) use($res) {
return $res->getWrappedObject();
};
$this->handle($req, $next)->shouldReturn($res);
}