Merge branch '4.2' into 4.3

* 4.2:
  [HttpKernel] fix tests
This commit is contained in:
Nicolas Grekas 2019-07-11 12:26:11 +02:00
commit a2dce3a6c6

View File

@ -26,7 +26,7 @@ class TraceableEventDispatcherTest extends TestCase
public function testStopwatchSections()
{
$dispatcher = new TraceableEventDispatcher(new EventDispatcher(), $stopwatch = new Stopwatch());
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response(); });
$kernel = $this->getHttpKernel($dispatcher, function () { return new Response('', 200, ['X-Debug-Token' => '292e1e']); });
$request = Request::create('/');
$response = $kernel->handle($request);
$kernel->terminate($request, $response);