Skip to content

Commit d22dd5f

Browse files
galvaopetk
authored andcommitted
Add test for pcntl_getpriority() basic behaviour
1 parent 0506c02 commit d22dd5f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
pcntl_getpriority() - Basic behaviour
3+
--CREDITS--
4+
Er Galvão Abbott [email protected]
5+
# TestFest 2017 PHPRS PHP UG 2017-10-29
6+
--SKIPIF--
7+
<?php
8+
if (!extension_loaded('pcntl')) {
9+
die('skip - ext/pcntl not loaded');
10+
} else if (!function_exists('pcntl_getpriority')) {
11+
die('skip - pcntl_getpriority doesn\'t exist');
12+
}
13+
?>
14+
--FILE--
15+
<?php
16+
var_dump(pcntl_getpriority());
17+
?>
18+
--EXPECTF--
19+
int(%d)

0 commit comments

Comments
 (0)