xref: /PHP-7.2/ext/standard/tests/file/003.phpt (revision 29cfd6d2)
1--TEST--
2is_*() and file_exists() return values are boolean.
3--FILE--
4<?php
5
6$funcs = array(
7	'is_writable',
8	'is_readable',
9	'is_executable',
10	'is_file',
11	'file_exists',
12);
13
14$filename="";
15
16foreach ($funcs as $test) {
17	$bb = $test($filename);
18	echo gettype($bb)."\n";
19	clearstatcache();
20}
21
22$filename="run-tests.php";
23
24foreach ($funcs as $test) {
25	$bb = $test($filename);
26	echo gettype($bb)."\n";
27	clearstatcache();
28}
29
30?>
31--EXPECT--
32boolean
33boolean
34boolean
35boolean
36boolean
37boolean
38boolean
39boolean
40boolean
41boolean
42