Annotation of embedaddon/php/ext/posix/tests/posix_times.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Test posix_times()
3: --DESCRIPTION--
4: Gets information about the current CPU usage.
5: Source code: ext/posix/posix.c
6: --CREDITS--
7: Falko Menge, mail at falko-menge dot de
8: PHP 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--
21: array(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===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>