posix_times.phpt 419 B

123456789101112131415161718192021222324252627
  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. --EXTENSIONS--
  10. posix
  11. --FILE--
  12. <?php
  13. var_dump(posix_times());
  14. ?>
  15. --EXPECTF--
  16. array(5) {
  17. ["ticks"]=>
  18. int(%i)
  19. ["utime"]=>
  20. int(%d)
  21. ["stime"]=>
  22. int(%d)
  23. ["cutime"]=>
  24. int(%d)
  25. ["cstime"]=>
  26. int(%d)
  27. }