summaryrefslogtreecommitdiff
path: root/Zend/tests/heredoc_011.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2008-02-12 09:28:30 +0000
committerDmitry Stogov <dmitry@php.net>2008-02-12 09:28:30 +0000
commit87a8f72f49b203e972e2bc9db6c74b8d602a1379 (patch)
treeabd1982e7c6a491b21af0e328c766d599e2f0bd6 /Zend/tests/heredoc_011.phpt
parent70252556cc7376ba5547f2f9e16c274fa5fb92a7 (diff)
downloadphp-git-87a8f72f49b203e972e2bc9db6c74b8d602a1379.tar.gz
Added NOWDOC
Diffstat (limited to 'Zend/tests/heredoc_011.phpt')
-rw-r--r--Zend/tests/heredoc_011.phpt20
1 files changed, 20 insertions, 0 deletions
diff --git a/Zend/tests/heredoc_011.phpt b/Zend/tests/heredoc_011.phpt
new file mode 100644
index 0000000000..6a1d5a00db
--- /dev/null
+++ b/Zend/tests/heredoc_011.phpt
@@ -0,0 +1,20 @@
+--TEST--
+Heredocs can NOT be used as static scalars.
+--FILE--
+<?php
+
+require_once 'nowdoc.inc';
+
+class e {
+
+ const E = <<<THISMUSTERROR
+If you see this, something's wrong.
+THISMUSTERROR;
+
+};
+
+print e::E . "\n";
+
+?>
+--EXPECTF--
+Parse error: syntax error, unexpected T_START_HEREDOC in %sheredoc_011.php on line 8