public function render($value = null, $keepQuotes = false, $encoding = 'UTF-8')
{
return self::renderStatic(array('value' => $value, 'keepQuotes' => $keepQuotes, 'encoding' => $encoding), $this->buildRenderChildrenClosure(), $this->renderingContext);
}
/** * @test */ public function renderDoesNotModifySourceIfItIsAnObjectThatCantBeConvertedToAString() { $user = new UserWithoutToString('Xaver <b>Cross-Site</b>'); $actualResult = $this->viewHelper->render($user); $this->assertSame($user, $actualResult); }