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_014.phpt | |
parent | 70252556cc7376ba5547f2f9e16c274fa5fb92a7 (diff) | |
download | php-git-87a8f72f49b203e972e2bc9db6c74b8d602a1379.tar.gz |
Added NOWDOC
Diffstat (limited to 'Zend/tests/nowdoc_014.phpt')
-rw-r--r-- | Zend/tests/nowdoc_014.phpt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Zend/tests/nowdoc_014.phpt b/Zend/tests/nowdoc_014.phpt new file mode 100644 index 0000000000..120a96f46a --- /dev/null +++ b/Zend/tests/nowdoc_014.phpt @@ -0,0 +1,25 @@ +--TEST-- +Highliting empty nowdoc +--INI-- +highlight.string = #DD0000 +highlight.comment = #FF8000 +highlight.keyword = #007700 +highlight.bg = #FFFFFF +highlight.default = #0000BB +highlight.html = #000000 +--FILE-- +<?php +$code = <<<'EOF' +<?php + $x = <<<'EOT' +EOT + $y = 2; +?> +EOF; +highlight_string($code); +?> +--EXPECT-- +<code><span style="color: #000000"> +<span style="color: #0000BB"><?php<br /> $x </span><span style="color: #007700">= <<<'EOT'<br /></span><span style="color: #0000BB"></span><span style="color: #007700">EOT<br /> </span><span style="color: #0000BB">$y </span><span style="color: #007700">= </span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?></span> +</span> +</code> |