summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/heredoc_007.phpt')
-rw-r--r--Zend/tests/heredoc_007.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/heredoc_007.phpt b/Zend/tests/heredoc_007.phpt
new file mode 100644
index 0000000000..b823b556fa
--- /dev/null
+++ b/Zend/tests/heredoc_007.phpt
@@ -0,0 +1,23 @@
+--TEST--
+braced and unbraced complex variable replacement test (heredoc)
+--FILE--
+<?php
+
+require_once 'nowdoc.inc';
+
+print <<<ENDOFHEREDOC
+This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
+
+ENDOFHEREDOC;
+
+$x = <<<ENDOFHEREDOC
+This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
+
+ENDOFHEREDOC;
+
+print "{$x}";
+
+?>
+--EXPECT--
+This is heredoc test #s 1, 2, 3, and 4.
+This is heredoc test #s 1, 2, 3, and 4.