1--TEST--
2Test fprintf() function (errors)
3--FILE--
4<?php
5
6/* Testing Error Conditions */
7echo "*** Testing Error Conditions ***\n";
8
9/* zero argument */
10var_dump( fprintf() );
11
12/* scalar argument */
13var_dump( fprintf(3) );
14
15/* NULL argument */
16var_dump( fprintf(NULL) );
17
18echo "Done\n";
19?>
20--EXPECTF--
21*** Testing Error Conditions ***
22
23Warning: Wrong parameter count for fprintf() in %sfprintf_error.php on line %d
24NULL
25
26Warning: Wrong parameter count for fprintf() in %sfprintf_error.php on line %d
27NULL
28
29Warning: Wrong parameter count for fprintf() in %sfprintf_error.php on line %d
30NULL
31Done
32