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