Annotation of embedaddon/php/tests/strings/004.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: highlight_string() buffering
! 3: --INI--
! 4: highlight.string=#DD0000
! 5: highlight.comment=#FF9900
! 6: highlight.keyword=#007700
! 7: highlight.bg=#FFFFFF
! 8: highlight.default=#0000BB
! 9: highlight.html=#000000
! 10: --FILE--
! 11: <?php
! 12: $var = highlight_string("<br /><?php echo \"foo\"; ?><br />");
! 13: $var = highlight_string("<br /><?php echo \"bar\"; ?><br />", TRUE);
! 14: echo "\n[$var]\n";
! 15: ?>
! 16: --EXPECT--
! 17: <code><span style="color: #000000">
! 18: <br /><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #DD0000">"foo"</span><span style="color: #007700">; </span><span style="color: #0000BB">?></span><br /></span>
! 19: </code>
! 20: [<code><span style="color: #000000">
! 21: <br /><span style="color: #0000BB"><?php </span><span style="color: #007700">echo </span><span style="color: #DD0000">"bar"</span><span style="color: #007700">; </span><span style="color: #0000BB">?></span><br /></span>
! 22: </code>]
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>