diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-02-12 09:27:45 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-02-12 09:27:45 +0000 |
commit | ddcf7a2f499b00a9a6f402eec256db1cd0deeb4f (patch) | |
tree | 5cdf287aabbc497895588d00d613ae13df9e2fbc /Zend/tests/heredoc_007.phpt | |
parent | 51278b6d22bc73c49edbb91992f953477b7e8734 (diff) | |
download | php-git-ddcf7a2f499b00a9a6f402eec256db1cd0deeb4f.tar.gz |
Added NEWDOC
Diffstat (limited to 'Zend/tests/heredoc_007.phpt')
-rw-r--r-- | Zend/tests/heredoc_007.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Zend/tests/heredoc_007.phpt b/Zend/tests/heredoc_007.phpt new file mode 100644 index 0000000000..b823b556fa --- /dev/null +++ b/Zend/tests/heredoc_007.phpt @@ -0,0 +1,23 @@ +--TEST-- +braced and unbraced complex variable replacement test (heredoc) +--FILE-- +<?php + +require_once 'nowdoc.inc'; + +print <<<ENDOFHEREDOC +This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}. + +ENDOFHEREDOC; + +$x = <<<ENDOFHEREDOC +This is heredoc test #s $a, {$b}, {$c['c']}, and {$d->d}. + +ENDOFHEREDOC; + +print "{$x}"; + +?> +--EXPECT-- +This is heredoc test #s 1, 2, 3, and 4. +This is heredoc test #s 1, 2, 3, and 4. |