public function renderUsesValueAsSourceIfSpecified()
{
$string = 'Some string';
$this->viewHelper->expects($this->once())->method('buildRenderChildrenClosure')->willReturn(function () {
throw new \Exception('rendderChildrenClosure was invoked but should not have been');
});
$this->viewHelper->setArguments(['value' => $string]);
$actualResult = $this->viewHelper->render();
$this->assertEquals($string, $actualResult);
}