xref: /PHP-7.0/ext/posix/tests/posix_times.phpt (revision 4a110443)
1--TEST--
2Test posix_times()
3--DESCRIPTION--
4Gets information about the current CPU usage.
5Source code: ext/posix/posix.c
6--CREDITS--
7Falko Menge, mail at falko-menge dot de
8PHP Testfest Berlin 2009-05-10
9--SKIPIF--
10<?php
11	if (!extension_loaded('posix')) {
12        die('SKIP - POSIX extension not available');
13    }
14?>
15--FILE--
16<?php
17    var_dump(posix_times());
18?>
19===DONE===
20--EXPECTF--
21array(5) {
22  ["ticks"]=>
23  int(%i)
24  ["utime"]=>
25  int(%d)
26  ["stime"]=>
27  int(%d)
28  ["cutime"]=>
29  int(%d)
30  ["cstime"]=>
31  int(%d)
32}
33===DONE===
34