kraghuba Mon Aug 13 11:50:47 2007 UTC Modified files: /php-src/ext/standard/tests/file clearstatcache_error.phpt Log: New testcase for clearstatcache() function http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/file/clearstatcache_error.phpt?r1=1.1&r2=1.2&diff_format=u Index: php-src/ext/standard/tests/file/clearstatcache_error.phpt diff -u /dev/null php-src/ext/standard/tests/file/clearstatcache_error.phpt:1.2 --- /dev/null Mon Aug 13 11:50:47 2007 +++ php-src/ext/standard/tests/file/clearstatcache_error.phpt Mon Aug 13 11:50:47 2007 @@ -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 ***
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php