diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-02-12 09:28:30 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-02-12 09:28:30 +0000 |
commit | 87a8f72f49b203e972e2bc9db6c74b8d602a1379 (patch) | |
tree | abd1982e7c6a491b21af0e328c766d599e2f0bd6 /Zend/tests/nowdoc_002.phpt | |
parent | 70252556cc7376ba5547f2f9e16c274fa5fb92a7 (diff) | |
download | php-git-87a8f72f49b203e972e2bc9db6c74b8d602a1379.tar.gz |
Added NOWDOC
Diffstat (limited to 'Zend/tests/nowdoc_002.phpt')
-rw-r--r-- | Zend/tests/nowdoc_002.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/nowdoc_002.phpt b/Zend/tests/nowdoc_002.phpt new file mode 100644 index 0000000000..3b17da814f --- /dev/null +++ b/Zend/tests/nowdoc_002.phpt @@ -0,0 +1,23 @@ +--TEST-- +basic binary nowdoc syntax +--FILE-- +<?php + +require_once 'nowdoc.inc'; + +print b<<<'ENDOFNOWDOC' +This is a nowdoc test. + +ENDOFNOWDOC; + +$x = b<<<'ENDOFNOWDOC' +This is another nowdoc test. + +ENDOFNOWDOC; + +print "{$x}"; + +?> +--EXPECT-- +This is a nowdoc test. +This is another nowdoc test. |