xref: /PHP-5.3/Zend/tests/nowdoc_014.phpt (revision 478acfd8)
1--TEST--
2Highlighting empty nowdoc
3--INI--
4highlight.string  = #DD0000
5highlight.comment = #FF8000
6highlight.keyword = #007700
7highlight.bg      = #FFFFFF
8highlight.default = #0000BB
9highlight.html    = #000000
10--FILE--
11<?php
12$code = <<<'EOF'
13<?php
14  $x = <<<'EOT'
15EOT
16  $y = 2;
17?>
18EOF;
19highlight_string($code);
20?>
21--EXPECT--
22<code><span style="color: #000000">
23<span style="color: #0000BB">&lt;?php<br />&nbsp;&nbsp;$x&nbsp;</span><span style="color: #007700">=&nbsp;&lt;&lt;&lt;'EOT'<br />EOT<br />&nbsp;&nbsp;</span><span style="color: #0000BB">$y&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">2</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span>
24</span>
25</code>
26