mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Add highlight_string buffering test
This commit is contained in:
parent
9f8b57fb57
commit
7ad71ed442
1 changed files with 17 additions and 0 deletions
17
tests/strings/004.phpt
Normal file
17
tests/strings/004.phpt
Normal file
|
@ -0,0 +1,17 @@
|
|||
--TEST--
|
||||
highlight_string() buffering
|
||||
--POST--
|
||||
--GET--
|
||||
--FILE--
|
||||
<?php
|
||||
$var = highlight_string("<br /><?php echo \"foo\"; ?><br />");
|
||||
$var = highlight_string("<br /><?php echo \"bar\"; ?><br />", TRUE);
|
||||
echo "\n[$var]\n";
|
||||
?>
|
||||
--EXPECT--
|
||||
<code><font color="#000000">
|
||||
<br /><font color="#0000BB"><?php </font><font color="#007700">echo </font><font color="#DD0000">"foo"</font><font color="#007700">; </font><font color="#0000BB">?></font><br /></font>
|
||||
</code>
|
||||
[<code><font color="#000000">
|
||||
<br /><font color="#0000BB"><?php </font><font color="#007700">echo </font><font color="#DD0000">"bar"</font><font color="#007700">; </font><font color="#0000BB">?></font><br /></font>
|
||||
</code>]
|
Loading…
Add table
Add a link
Reference in a new issue