diff options
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 0000000..3b17da8 --- /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. |