summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorEr Galvão Abbott <galvao@galvao.eti.br>2017-10-28 21:23:42 -0200
committerPeter Kokot <peterkokot@gmail.com>2019-02-09 02:39:46 +0100
commitd22dd5f93a687ed208ca39e451ae5ab7d7dc6be3 (patch)
tree1b7c2447980ee8a57795abc74df813982ec48a49 /ext
parent0506c0224a485812e7f675cb808432f5f98a4412 (diff)
downloadphp-git-d22dd5f93a687ed208ca39e451ae5ab7d7dc6be3.tar.gz
Add test for pcntl_getpriority() basic behaviour
Diffstat (limited to 'ext')
-rw-r--r--ext/pcntl/tests/pcntl_getpriority_basic.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/pcntl/tests/pcntl_getpriority_basic.phpt b/ext/pcntl/tests/pcntl_getpriority_basic.phpt
new file mode 100644
index 0000000000..42cd0f730b
--- /dev/null
+++ b/ext/pcntl/tests/pcntl_getpriority_basic.phpt
@@ -0,0 +1,19 @@
+--TEST--
+pcntl_getpriority() - Basic behaviour
+--CREDITS--
+Er Galvão Abbott galvao@galvao.eti.br
+# TestFest 2017 PHPRS PHP UG 2017-10-29
+--SKIPIF--
+<?php
+if (!extension_loaded('pcntl')) {
+ die('skip - ext/pcntl not loaded');
+} else if (!function_exists('pcntl_getpriority')) {
+ die('skip - pcntl_getpriority doesn\'t exist');
+}
+?>
+--FILE--
+<?php
+var_dump(pcntl_getpriority());
+?>
+--EXPECTF--
+int(%d)