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