← Back
Editing: pcntl_getpriority_error.phpt
--TEST-- pcntl_getpriority() - Wrong process identifier --SKIPIF-- <?php if (!extension_loaded('pcntl')) { die('skip ext/pcntl not loaded'); } if (!function_exists('pcntl_getpriority')) { die('skip pcntl_getpriority doesn\'t exist'); } ?> --FILE-- <?php try { pcntl_getpriority(null, 42); } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } ?> --EXPECT-- pcntl_getpriority(): Argument #2 ($mode) must be one of PRIO_PGRP, PRIO_USER, or PRIO_PROCESS
Save File
Cancel