cvs: php4 /tests/strings 004.phpt
| From: | Derick Rethans | Date: | Thu, 03 Oct 2002 10:47:47 +0000 |
| Subject: | cvs: php4 /tests/strings 004.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-14462@lists.php.net to get a copy of this message | ||
derick Thu Oct 3 06:47:47 2002 EDT
Added files:
/php4/tests/strings 004.phpt
Log:
- Add highlight_string buffering test
Index: php4/tests/strings/004.phpt
+++ php4/tests/strings/004.phpt
--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>]