/**
  * @runInSeparateProcess
  */
 public function testAjaxRender()
 {
     $request = $this->makeRequest();
     $request->expects($this->once())->method('isAjaxRequest')->will($this->returnValue(true));
     $view = $this->makeView();
     $view->expects($this->once())->method('renderPartial')->will($this->returnValue('tpl output'));
     $controller = $this->makeController($view);
     $this->expectOutputString(json_encode(['html' => 'tpl output']));
     $response = new Response($request);
     $response->setController($controller);
     $response->render('tpl');
     $this->assertContains('Content-type: application/json', xdebug_get_headers());
 }