1--TEST--
2Test filegroup() function: error conditions
3--FILE--
4<?php
5
6echo "*** Testing filegroup(): error conditions ***\n";
7
8/* Non-existing file or dir */
9var_dump( filegroup("/no/such/file/dir") );
10
11/* Invalid arguments */
12var_dump( filegroup("string") );
13var_dump( filegroup(100) );
14
15echo "\n*** Done ***\n";
16?>
17--EXPECTF--
18*** Testing filegroup(): error conditions ***
19
20Warning: filegroup(): stat failed for /no/such/file/dir in %s on line %d
21bool(false)
22
23Warning: filegroup(): stat failed for string in %s on line %d
24bool(false)
25
26Warning: filegroup(): stat failed for 100 in %s on line %d
27bool(false)
28
29*** Done ***
30