xref: /PHP-8.0/ext/posix/tests/posix_times.phpt (revision c5401854)
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--EXPECTF--
20array(5) {
21  ["ticks"]=>
22  int(%i)
23  ["utime"]=>
24  int(%d)
25  ["stime"]=>
26  int(%d)
27  ["cutime"]=>
28  int(%d)
29  ["cstime"]=>
30  int(%d)
31}
32