public function viewHelperOutputsArrayOnIndexedArrayInputAndObjectIfSetSo()
{
$this->viewHelper->expects($this->any())->method('renderChildren')->will($this->returnValue(array('foo', 'bar', 42)));
$this->assertEquals('["foo","bar",42]', $this->viewHelper->render());
$this->assertEquals('{"0":"foo","1":"bar","2":42}', $this->viewHelper->render(null, true));
}