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