summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/sys_getloadavg.phpt
blob: 5763084f700a2ced5acaf9008599667b41c706e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
sys_getloadavg() tests
--SKIPIF--
<?php
if (!function_exists("sys_getloadavg")) die("skip");
?>
--FILE--
<?php

var_dump(sys_getloadavg(""));
var_dump(sys_getloadavg());

echo "Done\n";
?>
--EXPECTF--
Warning: sys_getloadavg() expects exactly 0 parameters, %d given in %s
NULL
array(3) {
  [0]=>
  float(%f)
  [1]=>
  float(%f)
  [2]=>
  float(%f)
}
Done