/** * @test */ public function renderReturnsChildNodesIfValuesIsAnEmptyArray() { $this->viewHelper->expects($this->once())->method('renderChildren')->will($this->returnValue('Child nodes')); $this->viewHelper->setArguments(array('values' => array(), 'as' => 'foo')); $this->assertEquals('Child nodes', $this->viewHelper->render()); }