bar
EOD;
/* testProperty2 */
$heredoc = <<<"EOD"
{$foo->bar}
EOD;
/* testMethod1 */
$heredoc = <<bar()}
EOD;
/* testClosure1 */
$heredoc = <<<"EOD"
{$foo()}
EOD;
/* testChain1 */
$heredoc = <<baz()()}
EOD;
/* testVariableVar1 */
$heredoc = <<<"EOD"
${$bar}
EOD;
/* testVariableVar2 */
$heredoc = <<bar}
EOD;
/* testNested1 */
$heredoc = <<{$baz}}
EOD;
/* testNested4 */
$heredoc = <<<"EOD"
${foo->{${'a'}}}
EOD;
/* testNested5 */
$heredoc = <<{"${'a'}"}}
EOD;
/* testSimple1Wrapped */
$heredoc = <<bar Something
EOD;
/* testProperty2Wrapped */
$heredoc = <<<"EOD"
Do {$foo->bar} Something
EOD;
/* testMethod1Wrapped */
$heredoc = <<bar()} Something
EOD;
/* testClosure1Wrapped */
$heredoc = <<<"EOD"
Do {$foo()} Something
EOD;
/* testChain1Wrapped */
$heredoc = <<baz()()} Something
EOD;
/* testVariableVar1Wrapped */
$heredoc = <<<"EOD"
Do ${$bar} Something
EOD;
/* testVariableVar2Wrapped */
$heredoc = <<bar} Something
EOD;
/* testNested1Wrapped */
$heredoc = <<{$baz}} Something
EOD;
/* testNested4Wrapped */
$heredoc = <<<"EOD"
Do ${foo->{${'a'}}} Something
EOD;
/* testNested5Wrapped */
$heredoc = <<{"${'a'}"}} Something
EOD;