--TEST-- Test function fstat() by calling it with its expected arguments --FILE-- $value) { if ($isWin && ($key === 0 || $key === 6 || $key === 'dev' || $key === 'rdev')) { // windows, dev and rdev will not match this is expected } else { if ($fstat_result[$key] != $value) { echo "FAIL: stat differs at '$key'. $fstat_result[$key] -- $value\n"; $failed = true; } } } if ($failed !== true) { echo "PASSED: all elements are the same\n"; } ?> ===DONE=== --EXPECT-- PASSED: all elements are the same ===DONE===