1--TEST--
2Test is_readable() function: error conditions
3--FILE--
4<?php
5/* Prototype: bool is_readable ( string $filename );
6   Description: Tells whether the filename is readable
7*/
8
9echo "*** Testing is_readable(): error conditions ***\n";
10var_dump( is_readable() );  // args < expected
11var_dump( is_readable(1, 2) );  // args > expected
12
13echo "\n*** Testing is_readable() on non-existent file ***\n";
14var_dump( is_readable(dirname(__FILE__)."/is_readable.tmp") );
15
16echo "Done\n";
17?>
18--EXPECTF--
19*** Testing is_readable(): error conditions ***
20
21Warning: is_readable() expects exactly 1 parameter, 0 given in %s on line %d
22NULL
23
24Warning: is_readable() expects exactly 1 parameter, 2 given in %s on line %d
25NULL
26
27*** Testing is_readable() on non-existent file ***
28bool(false)
29Done
30