1--TEST-- 2Check for uv_cpuinfo 3--FILE-- 4<?php 5$cpuinfo = uv_cpu_info(); 6 7$info = array_shift($cpuinfo); 8 9if (!isset($info["model"])) { 10 echo "FAILED: key `model` does not exist" . PHP_EOL; 11} 12if (!isset($info["speed"])) { 13 echo "FAILED: key `speed` does not exist" . PHP_EOL; 14} 15if (!isset($info["times"])) { 16 echo "FAILED: key `times` does not exist" . PHP_EOL; 17} 18 19if (!isset($info["times"]["sys"])) { 20 echo "FAILED: key `times.sys` does not exist" . PHP_EOL; 21} 22if (!isset($info["times"]["user"])) { 23 echo "FAILED: key `times.user` does not exist" . PHP_EOL; 24} 25if (!isset($info["times"]["idle"])) { 26 echo "FAILED: key `times.idle` does not exist" . PHP_EOL; 27} 28if (!isset($info["times"]["irq"])) { 29 echo "FAILED: key `times.irq` does not exist" . PHP_EOL; 30} 31if (!isset($info["times"]["nice"])) { 32 echo "FAILED: key `times.nice` does not exist" . PHP_EOL; 33} 34 35--EXPECT-- 36