diff options
author | Raghubansh Kumar <kraghuba@php.net> | 2007-08-13 11:50:47 +0000 |
---|---|---|
committer | Raghubansh Kumar <kraghuba@php.net> | 2007-08-13 11:50:47 +0000 |
commit | 1514977352af9c98c8c0527e547692a2bdeb8d0a (patch) | |
tree | d87c5b6dcb634449bd2530babca4708869618d38 | |
parent | c0ebb17904d0b168640260b6e96e1e4f6585b995 (diff) | |
download | php-git-1514977352af9c98c8c0527e547692a2bdeb8d0a.tar.gz |
New testcase for clearstatcache() function
-rw-r--r-- | ext/standard/tests/file/clearstatcache_error.phpt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/standard/tests/file/clearstatcache_error.phpt b/ext/standard/tests/file/clearstatcache_error.phpt new file mode 100644 index 0000000000..c4ce64aefc --- /dev/null +++ b/ext/standard/tests/file/clearstatcache_error.phpt @@ -0,0 +1,23 @@ +--TEST-- +Test clearstatcache() function: error conditions(bug#42072) +--FILE-- +<?php +/* + Prototype: void clearstatcache (void); + Description: clears files status cache +*/ + +echo "*** Testing clearstatcache() function: error conditions ***\n"; +var_dump( clearstatcache("file") ); //No.of args more than expected +echo "*** Done ***\n"; +?> +--EXPECTF-- +*** Testing clearstatcache() function: error conditions *** +Warning: clearstatcache() expects 0 parameter, 1 given in %s on line %d +NULL +*** Done *** +--UEXPECTF-- +*** Testing clearstatcache() function: error conditions *** +Warning: clearstatcache() expects 0 parameter, 1 given in %s on line %d +NULL +*** Done *** |