summaryrefslogtreecommitdiff
path: root/ext/standard/tests
diff options
context:
space:
mode:
authorRaghubansh Kumar <kraghuba@php.net>2007-08-13 11:40:57 +0000
committerRaghubansh Kumar <kraghuba@php.net>2007-08-13 11:40:57 +0000
commit5c98effea0e7e547dffb332957c9cc3a1b7289eb (patch)
tree07f121bf3b52d9d3a6a45126799342d6146918f8 /ext/standard/tests
parent4ed53a6dce7f0c28b1bdbccf5472077b8a73eb3d (diff)
downloadphp-git-5c98effea0e7e547dffb332957c9cc3a1b7289eb.tar.gz
New testcase for clearstatcache() function
Diffstat (limited to 'ext/standard/tests')
-rw-r--r--ext/standard/tests/file/clearstatcache_error.phpt18
1 files changed, 18 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..71e458083e
--- /dev/null
+++ b/ext/standard/tests/file/clearstatcache_error.phpt
@@ -0,0 +1,18 @@
+--TEST--
+Test clearstatcache() function: error conditions
+--FILE--
+<?php
+/*
+ Prototype: void clearstatcache (void);
+ Description: clears files status cache
+*/
+
+echo "*** Testing clearstatcache() function: error conditions --";
+var_dump( clearstatcache("file") ); //No.of args more than expected
+echo "*** Done ***\n";
+?>
+--EXPECTF--
+*** Testing clearstatcache() function: error conditions --
+Warning: Wrong parameter count for clearstatcache() in %s on line %d
+NULL
+*** Done ***