summaryrefslogtreecommitdiff
path: root/Zend/tests/nowdoc_012.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/nowdoc_012.phpt')
-rw-r--r--Zend/tests/nowdoc_012.phpt25
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/nowdoc_012.phpt b/Zend/tests/nowdoc_012.phpt
new file mode 100644
index 0000000000..0bcb92e4b8
--- /dev/null
+++ b/Zend/tests/nowdoc_012.phpt
@@ -0,0 +1,25 @@
+--TEST--
+Test false labels
+--FILE--
+<?php
+
+require_once 'nowdoc.inc';
+
+$x = <<<'ENDOFNOWDOC'
+This is a nowdoc test.
+NOTREALLYEND;
+Another line
+NOTENDEITHER;
+ENDOFNOWDOCWILLBESOON
+Now let's finish it
+ENDOFNOWDOC;
+print "{$x}\n";
+
+?>
+--EXPECT--
+This is a nowdoc test.
+NOTREALLYEND;
+Another line
+NOTENDEITHER;
+ENDOFNOWDOCWILLBESOON
+Now let's finish it