summaryrefslogtreecommitdiff
path: root/ext/standard/tests/general_functions/sys_getloadavg.phpt
blob: a788e3206b12db12de070fa7d63c68c17cd9b0b4 (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
27
--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