/** * @test */ public function renderDoesNotModifySourceIfItIsAnObjectThatCantBeConvertedToAString() { $user = new UserWithoutToString('Xaver <b>Cross-Site</b>'); $actualResult = $this->viewHelper->render($user); $this->assertSame($user, $actualResult); }