1--TEST--
2Test hebrev() function : error conditions
3--FILE--
4<?php
5
6/* Prototype  : string hebrev  ( string $hebrew_text  [, int $max_chars_per_line  ] )
7 * Description: Convert logical Hebrew text to visual text
8 * Source code: ext/standard/string.c
9*/
10
11echo "*** Testing hebrev() : error conditions ***\n";
12
13echo "\n-- Testing hebrev() function with no arguments --\n";
14var_dump( hebrev() );
15
16echo "\n-- Testing hebrev() function with more than expected no. of arguments --\n";
17$extra_arg = 10;
18var_dump( hebrev("Hello World", 5, $extra_arg) );
19
20?>
21===DONE===
22--EXPECTF--
23*** Testing hebrev() : error conditions ***
24
25-- Testing hebrev() function with no arguments --
26
27Warning: hebrev() expects at least 1 parameter, 0 given in %s on line %d
28NULL
29
30-- Testing hebrev() function with more than expected no. of arguments --
31
32Warning: hebrev() expects at most 2 parameters, 3 given in %s on line %d
33NULL
34===DONE===
35