public function renderCanRenderMultipleComplexObjects()
{
$array = ['foo' => ['bar' => 'Baz']];
$object = new \stdClass();
$object->foo = 'Foo';
$this->view->assign('array', $array)->assign('object', $object)->assign('someOtherVariable', 'Value3');
$this->view->setVariablesToRender(['array', 'object']);
$expectedResult = '{"array":{"foo":{"bar":"Baz"}},"object":{"foo":"Foo"}}';
$actualResult = $this->view->render();
$this->assertEquals($expectedResult, $actualResult);
}