]> granicus.if.org Git - php/commitdiff
New testcase for clearstatcache() function
authorRaghubansh Kumar <kraghuba@php.net>
Mon, 13 Aug 2007 11:40:57 +0000 (11:40 +0000)
committerRaghubansh Kumar <kraghuba@php.net>
Mon, 13 Aug 2007 11:40:57 +0000 (11:40 +0000)
ext/standard/tests/file/clearstatcache_error.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/file/clearstatcache_error.phpt b/ext/standard/tests/file/clearstatcache_error.phpt
new file mode 100644 (file)
index 0000000..71e4580
--- /dev/null
@@ -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 ***