/**
  * @test
  * @dataProvider getRenderTestValues
  * @param array $arguments
  * @param string|NULL $expectedViewMethod
  */
 public function testRender(array $arguments, $expectedViewMethod)
 {
     if ($expectedViewMethod) {
         $methods = array($expectedViewMethod);
     } else {
         $methods = array('renderPartial', 'renderSection');
     }
     $instance = new RenderViewHelper();
     $renderingContext = new RenderingContext();
     $viewHelperVariableContainer = new ViewHelperVariableContainer();
     $view = $this->getMock('NamelessCoder\\Fluid\\View\\TemplateView', $methods, array(), '', FALSE);
     $viewHelperVariableContainer->setView($view);
     $renderingContext->injectViewHelperVariableContainer($viewHelperVariableContainer);
     $instance->setArguments($arguments);
     $instance->setRenderingContext($renderingContext);
     $instance->render();
 }
 /**
  * @test
  */
 public function viewIsPlacedInViewHelperVariableContainer()
 {
     $this->viewHelperVariableContainer->expects($this->once())->method('setView')->with($this->view);
     $this->view->setRenderingContext($this->renderingContext);
 }
 /**
  * @test
  */
 public function testSleepReturnsExpectedPropertyNames()
 {
     $subject = new ViewHelperVariableContainer();
     $properties = $subject->__sleep();
     $this->assertContains('objects', $properties);
 }