Annotation of embedaddon/php/ext/standard/tests/strings/nl2br.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: nl2br() function
! 3: --FILE--
! 4: <?php
! 5: var_dump(nl2br("test"));
! 6: var_dump(nl2br(""));
! 7: var_dump(nl2br(NULL));
! 8: var_dump(nl2br("\r\n"));
! 9: var_dump(nl2br("\n"));
! 10: var_dump(nl2br("\r"));
! 11: var_dump(nl2br("\n\r"));
! 12:
! 13: var_dump(nl2br("\n\r\r\n\r\r\r\r"));
! 14: var_dump(nl2br("\n\r\n\n\r\n\r\r\n\r\n"));
! 15: var_dump(nl2br("\n\r\n\n\n\n\r\r\r\r\n\r"));
! 16:
! 17: ?>
! 18: --EXPECT--
! 19: string(4) "test"
! 20: string(0) ""
! 21: string(0) ""
! 22: string(8) "<br />
! 23: "
! 24: string(7) "<br />
! 25: "
! 26: string(7) "<br />
"
! 27: string(8) "<br />
! 28:
"
! 29: string(44) "<br />
! 30:
<br />
! 31: <br />
<br />
<br />
<br />
"
! 32: string(47) "<br />
! 33:
<br />
! 34: <br />
! 35:
<br />
! 36:
<br />
! 37: <br />
! 38: "
! 39: string(66) "<br />
! 40:
<br />
! 41: <br />
! 42: <br />
! 43: <br />
! 44:
<br />
<br />
<br />
! 45: <br />
"
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>