diff --git a/src/Model/JsonModel.php b/src/Model/JsonModel.php index 0f74a03e..419817ee 100644 --- a/src/Model/JsonModel.php +++ b/src/Model/JsonModel.php @@ -22,6 +22,7 @@ namespace Zend\View\Model; use Traversable, + Zend\Json\Json, Zend\Stdlib\ArrayUtils; /** diff --git a/test/ViewTest.php b/test/ViewTest.php index 678d95bd..c67baa36 100644 --- a/test/ViewTest.php +++ b/test/ViewTest.php @@ -145,6 +145,7 @@ public function testChildrenMayInvokeDifferentRenderingStrategiesThanParents() $child2 = new Model\JsonModel(array('bar' => 'baz')); $child2->setCaptureTo('child2'); + $child2->setTerminal(false); $this->model->setVariable('parent', 'node'); $this->model->addChild($child1);