Annotation of embedaddon/php/ext/standard/tests/file/clearstatcache_error.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test clearstatcache() function: error conditions
3: --FILE--
4: <?php
5: /*
6: Prototype: void clearstatcache ([bool clear_realpath_cache[, filename]]);
7: Description: clears files status cache
8: */
9:
10: echo "*** Testing clearstatcache() function: error conditions ***\n";
11: var_dump( clearstatcache(0, "/foo/bar", 1) ); //No.of args more than expected
12: echo "*** Done ***\n";
13: ?>
14: --EXPECTF--
15: *** Testing clearstatcache() function: error conditions ***
16:
17: Warning: clearstatcache() expects at most 2 parameters, 3 given in %s on line %d
18: NULL
19: *** Done ***
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>