1--TEST--
2Test getrusage() function: basic test
3--SKIPIF--
4<?php if (!function_exists("getrusage")) print "skip"; ?>
5--FILE--
6<?php
7echo "Simple testcase for getrusage() function\n";
8
9$dat = getrusage();
10
11if (!is_array($dat)) {
12    echo "TEST FAILED : getrusage should return an array\n";
13}
14
15// echo the fields which are common to all platforms
16echo "User time used (seconds) " . $dat["ru_utime.tv_sec"] . "\n";
17echo "User time used (microseconds) " . $dat["ru_utime.tv_usec"] . "\n";
18?>
19--EXPECTF--
20Simple testcase for getrusage() function
21User time used (seconds) %d
22User time used (microseconds) %d
23