import zend standard tests
[hiphop-php.git] / hphp / test / zend / bad / ext-standard-strings / nl2br_error.php
blob0e2f7886084daec1074d680c8776a0c394f3a5ad
1 <?php
2 /* Prototype : string nl2br(string $str)
3 * Description: Inserts HTML line breaks before all newlines in a string.
4 * Source code: ext/standard/string.c
5 */
7 echo "*** Testing nl2br() : error conditions ***\n";
9 // Zero arguments
10 echo "\n-- Testing nl2br() function with Zero arguments --";
11 var_dump( nl2br() );
13 //Test nl2br with one more than the expected number of arguments
14 echo "\n-- Testing nl2br() function with more than expected no. of arguments --";
15 $str = 'string_val';
16 $extra_arg = 10;
17 var_dump( nl2br($str, true, $extra_arg) );
19 echo "Done";