php-src/ext/standard/tests/general_functions/getrusage.phpt
Steph Fox fa3d01975b - killed off UEXPECT
- E_DEPRECATED doesn't always allow stuff to pass?
2008-05-27 00:04:31 +00:00

24 lines
423 B
PHP

--TEST--
getrusage() tests
--SKIPIF--
<?php if (!function_exists("getrusage")) print "skip"; ?>
--FILE--
<?php
var_dump(gettype(getrusage()));
var_dump(gettype(getrusage(1)));
var_dump(gettype(getrusage(-1)));
var_dump(getrusage(array()));
echo "Done\n";
?>
--EXPECTF--
unicode(5) "array"
unicode(5) "array"
unicode(5) "array"
Warning: getrusage() expects parameter 1 to be long, array given in %s on line %d
NULL
Done