diff --git a/ext/pcntl/tests/pcntl_getpriority_error.phpt b/ext/pcntl/tests/pcntl_getpriority_error.phpt index 4339e0ebf483..3318ab8d8585 100644 --- a/ext/pcntl/tests/pcntl_getpriority_error.phpt +++ b/ext/pcntl/tests/pcntl_getpriority_error.phpt @@ -1,5 +1,5 @@ --TEST-- -pcntl_getpriority() - Wrong process identifier +pcntl_getpriority() - Wrong mode passed and also for non existing process id provided --EXTENSIONS-- pcntl --SKIPIF-- @@ -13,11 +13,15 @@ if (!function_exists('pcntl_getpriority')) { getMessage() . "\n"; } +pcntl_getpriority(-123); + ?> ---EXPECT-- +--EXPECTF-- pcntl_getpriority(): Argument #2 ($mode) must be one of PRIO_PGRP, PRIO_USER, or PRIO_PROCESS + +Warning: pcntl_getpriority(): Error 3: No process was located using the given parameters in %s