mirror of
https://github.com/danog/ext-uv.git
synced 2024-12-11 16:49:52 +01:00
15 lines
249 B
Plaintext
15 lines
249 B
Plaintext
|
--TEST--
|
||
|
Check for uv_loadavg
|
||
|
--FILE--
|
||
|
<?php
|
||
|
$avg = uv_loadavg();
|
||
|
|
||
|
echo "count: " . count($avg) . PHP_EOL;
|
||
|
echo (int)is_float($avg[0]) . PHP_EOL;
|
||
|
echo (int)is_float($avg[1]) . PHP_EOL;
|
||
|
echo (int)is_float($avg[2]) . PHP_EOL;
|
||
|
--EXPECT--
|
||
|
count: 3
|
||
|
1
|
||
|
1
|
||
|
1
|