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