diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 18:03:31 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-14 19:46:15 +0200 |
commit | d7a3edd45db8d91ddf09cba7c594c63e63f62709 (patch) | |
tree | ef4fe3e4794260b362dad72d3542fdbef0169b8e /ext/posix | |
parent | b0708fa2e7b31f1fbd9539486a35d33643e62461 (diff) | |
download | php-git-d7a3edd45db8d91ddf09cba7c594c63e63f62709.tar.gz |
Trim trailing whitespace in *.phpt
Diffstat (limited to 'ext/posix')
30 files changed, 61 insertions, 61 deletions
diff --git a/ext/posix/tests/posix_get_last_error_error.phpt b/ext/posix/tests/posix_get_last_error_error.phpt index 4ef1d5170d..5400b61598 100644 --- a/ext/posix/tests/posix_get_last_error_error.phpt +++ b/ext/posix/tests/posix_get_last_error_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_get_last_error() function : error conditions +Test posix_get_last_error() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; @@ -7,7 +7,7 @@ Test posix_get_last_error() function : error conditions --FILE-- <?php /* Prototype : proto int posix_get_last_error(void) - * Description: Retrieve the error number set by the last posix function which failed. + * Description: Retrieve the error number set by the last posix function which failed. * Source code: ext/posix/posix.c * Alias to functions: posix_errno */ diff --git a/ext/posix/tests/posix_getgid_error.phpt b/ext/posix/tests/posix_getgid_error.phpt index fdcb8e9697..f02d07413a 100644 --- a/ext/posix/tests/posix_getgid_error.phpt +++ b/ext/posix/tests/posix_getgid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getgid() function : error conditions +Test posix_getgid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getgrgid_basic.phpt b/ext/posix/tests/posix_getgrgid_basic.phpt index 3b57eaeaf3..be717da64a 100644 --- a/ext/posix/tests/posix_getgrgid_basic.phpt +++ b/ext/posix/tests/posix_getgrgid_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getgrgid() function : basic functionality +Test posix_getgrgid() function : basic functionality --SKIPIF-- <?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); diff --git a/ext/posix/tests/posix_getgrgid_error.phpt b/ext/posix/tests/posix_getgrgid_error.phpt index e51823bf65..ef7fa57a9d 100644 --- a/ext/posix/tests/posix_getgrgid_error.phpt +++ b/ext/posix/tests/posix_getgrgid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getgrgid() function : error conditions +Test posix_getgrgid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getgrgid_variation.phpt b/ext/posix/tests/posix_getgrgid_variation.phpt index 80c12be089..9bf807ad14 100644 --- a/ext/posix/tests/posix_getgrgid_variation.phpt +++ b/ext/posix/tests/posix_getgrgid_variation.phpt @@ -72,7 +72,7 @@ foreach($values as $value) { echo "\nArg value $value \n"; $result = posix_getgrgid($value); if ((is_array($result) && (count($result) == 4)) - || + || ($result === false)) { echo "valid output\n"; } else { diff --git a/ext/posix/tests/posix_getgroups_basic.phpt b/ext/posix/tests/posix_getgroups_basic.phpt index c6294fe127..2d309e61d4 100644 --- a/ext/posix/tests/posix_getgroups_basic.phpt +++ b/ext/posix/tests/posix_getgroups_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getgroups() function : basic functionality +Test posix_getgroups() function : basic functionality --SKIPIF-- <?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); diff --git a/ext/posix/tests/posix_getpgid_basic.phpt b/ext/posix/tests/posix_getpgid_basic.phpt index a006a36858..500bc18cff 100644 --- a/ext/posix/tests/posix_getpgid_basic.phpt +++ b/ext/posix/tests/posix_getpgid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getpgid() function : basic functionality +Test posix_getpgid() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of posix_getpgid function\n"; - + $pid = posix_getpid(); $pgid = posix_getpgid($pid); - + var_dump($pgid); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpgid_variation.phpt b/ext/posix/tests/posix_getpgid_variation.phpt index 3d19256d19..6a5e7fd5a9 100644 --- a/ext/posix/tests/posix_getpgid_variation.phpt +++ b/ext/posix/tests/posix_getpgid_variation.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getpgid() function : variation +Test posix_getpgid() function : variation --SKIPIF-- <?php PHP_INT_SIZE == 4 or die("skip - 32-bit only"); diff --git a/ext/posix/tests/posix_getpgrp_basic.phpt b/ext/posix/tests/posix_getpgrp_basic.phpt index 185bbbefca..f460e347ce 100644 --- a/ext/posix/tests/posix_getpgrp_basic.phpt +++ b/ext/posix/tests/posix_getpgrp_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getpgrp() function : basic functionality +Test posix_getpgrp() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX getpgrp function\n"; - + $pgrp = posix_getpgrp(); - + var_dump($pgrp); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpgrp_error.phpt b/ext/posix/tests/posix_getpgrp_error.phpt index 0229270b63..6076d688c9 100644 --- a/ext/posix/tests/posix_getpgrp_error.phpt +++ b/ext/posix/tests/posix_getpgrp_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getpgrp() function : error conditions +Test posix_getpgrp() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getpid_basic.phpt b/ext/posix/tests/posix_getpid_basic.phpt index 0302922be1..40689583b5 100644 --- a/ext/posix/tests/posix_getpid_basic.phpt +++ b/ext/posix/tests/posix_getpid_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getpid() function : basic functionality +Test posix_getpid() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX getpid function\n"; - + $pid = posix_getpid(); - + var_dump($pid); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getpid_error.phpt b/ext/posix/tests/posix_getpid_error.phpt index 471a8aa3ea..46131b7c9d 100644 --- a/ext/posix/tests/posix_getpid_error.phpt +++ b/ext/posix/tests/posix_getpid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getpid() function : error conditions +Test posix_getpid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getppid_basic.phpt b/ext/posix/tests/posix_getppid_basic.phpt index 3cbf5d7a6e..8d10afc456 100644 --- a/ext/posix/tests/posix_getppid_basic.phpt +++ b/ext/posix/tests/posix_getppid_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_getppid() function : basic functionality +Test posix_getppid() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX getppid function\n"; - + $ppid = posix_getppid(); - + var_dump($ppid); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getppid_error.phpt b/ext/posix/tests/posix_getppid_error.phpt index 9c3919e21c..d962182ba4 100644 --- a/ext/posix/tests/posix_getppid_error.phpt +++ b/ext/posix/tests/posix_getppid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getppid() function : error conditions +Test posix_getppid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getpwuid_basic.phpt b/ext/posix/tests/posix_getpwuid_basic.phpt index 7d9b8d1181..16e0ae1152 100644 --- a/ext/posix/tests/posix_getpwuid_basic.phpt +++ b/ext/posix/tests/posix_getpwuid_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getpwuid() function : basic functionality +Test posix_getpwuid() function : basic functionality --SKIPIF-- <?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); diff --git a/ext/posix/tests/posix_getpwuid_error.phpt b/ext/posix/tests/posix_getpwuid_error.phpt index b44584448a..440edf6a76 100644 --- a/ext/posix/tests/posix_getpwuid_error.phpt +++ b/ext/posix/tests/posix_getpwuid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getpwuid() function : error conditions +Test posix_getpwuid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_getpwuid_variation.phpt b/ext/posix/tests/posix_getpwuid_variation.phpt index 27b4ca956f..ca57d2cc83 100644 --- a/ext/posix/tests/posix_getpwuid_variation.phpt +++ b/ext/posix/tests/posix_getpwuid_variation.phpt @@ -72,7 +72,7 @@ foreach($values as $value) { echo "\nArg value $value \n"; $result = posix_getpwuid($value); if ((is_array($result) && (count($result) == 7)) - || + || ($result === false)) { echo "valid output\n"; } else { diff --git a/ext/posix/tests/posix_getsid_basic.phpt b/ext/posix/tests/posix_getsid_basic.phpt index 6fd61e5bca..5bf362efd4 100644 --- a/ext/posix/tests/posix_getsid_basic.phpt +++ b/ext/posix/tests/posix_getsid_basic.phpt @@ -1,18 +1,18 @@ --TEST-- -Test posix_getsid() function : basic functionality +Test posix_getsid() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of posix_getsid function\n"; - + $pid = posix_getpid(); $sid = posix_getsid($pid); - + var_dump($sid); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_getsid_error.phpt b/ext/posix/tests/posix_getsid_error.phpt index 148b09470b..6013a40b96 100644 --- a/ext/posix/tests/posix_getsid_error.phpt +++ b/ext/posix/tests/posix_getsid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getsid() function : error conditions +Test posix_getsid() function : error conditions --DESCRIPTION-- cases: no params, wrong param, wrong param range --CREDITS-- diff --git a/ext/posix/tests/posix_getuid_error.phpt b/ext/posix/tests/posix_getuid_error.phpt index a4f6272eed..8954108c32 100644 --- a/ext/posix/tests/posix_getuid_error.phpt +++ b/ext/posix/tests/posix_getuid_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_getuid() function : error conditions +Test posix_getuid() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_kill_basic.phpt b/ext/posix/tests/posix_kill_basic.phpt index c45a2624d1..fe9cf44692 100644 --- a/ext/posix/tests/posix_kill_basic.phpt +++ b/ext/posix/tests/posix_kill_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality +Test posix_kill(), posix_get_last_error and posix_strerror() functions : basic functionality --SKIPIF-- <?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); diff --git a/ext/posix/tests/posix_kill_error.phpt b/ext/posix/tests/posix_kill_error.phpt index 2ca9392139..0c8f6ef642 100644 --- a/ext/posix/tests/posix_kill_error.phpt +++ b/ext/posix/tests/posix_kill_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_kill() function : error conditions +Test posix_kill() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_setgid_basic.phpt b/ext/posix/tests/posix_setgid_basic.phpt index 3b7d1f9a45..bb41e22989 100644 --- a/ext/posix/tests/posix_setgid_basic.phpt +++ b/ext/posix/tests/posix_setgid_basic.phpt @@ -1,7 +1,7 @@ --TEST-- Test function posix_setgid() by calling it with its expected arguments --SKIPIF-- -<?php +<?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_setgid_variation6.phpt b/ext/posix/tests/posix_setgid_variation6.phpt index d8c86b046f..46174450d8 100644 --- a/ext/posix/tests/posix_setgid_variation6.phpt +++ b/ext/posix/tests/posix_setgid_variation6.phpt @@ -1,7 +1,7 @@ --TEST-- Test function posix_setgid() by substituting argument 1 with object values. --SKIPIF-- -<?php +<?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; ?> --CREDITS-- diff --git a/ext/posix/tests/posix_strerror_error.phpt b/ext/posix/tests/posix_strerror_error.phpt index a016f19dd4..3007f976c6 100644 --- a/ext/posix/tests/posix_strerror_error.phpt +++ b/ext/posix/tests/posix_strerror_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_strerror() function : error conditions +Test posix_strerror() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; @@ -7,7 +7,7 @@ Test posix_strerror() function : error conditions --FILE-- <?php /* Prototype : proto string posix_strerror(int errno) - * Description: Retrieve the system error message associated with the given errno. + * Description: Retrieve the system error message associated with the given errno. * Source code: ext/posix/posix.c * Alias to functions: */ diff --git a/ext/posix/tests/posix_strerror_variation1.phpt b/ext/posix/tests/posix_strerror_variation1.phpt index 0e1feb9de8..e8da057c7f 100644 --- a/ext/posix/tests/posix_strerror_variation1.phpt +++ b/ext/posix/tests/posix_strerror_variation1.phpt @@ -8,7 +8,7 @@ Test posix_strerror() function : usage variations --FILE-- <?php /* Prototype : proto string posix_strerror(int errno) - * Description: Retrieve the system error message associated with the given errno. + * Description: Retrieve the system error message associated with the given errno. * Source code: ext/posix/posix.c * Alias to functions: */ diff --git a/ext/posix/tests/posix_times_basic.phpt b/ext/posix/tests/posix_times_basic.phpt index 78c53bdb1f..ad37834fd9 100644 --- a/ext/posix/tests/posix_times_basic.phpt +++ b/ext/posix/tests/posix_times_basic.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_times() function : basic functionality +Test posix_times() function : basic functionality --SKIPIF-- <?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); diff --git a/ext/posix/tests/posix_times_error.phpt b/ext/posix/tests/posix_times_error.phpt index 242f4499b3..0f8a9e3601 100644 --- a/ext/posix/tests/posix_times_error.phpt +++ b/ext/posix/tests/posix_times_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_times() function : error conditions +Test posix_times() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; diff --git a/ext/posix/tests/posix_uname_basic.phpt b/ext/posix/tests/posix_uname_basic.phpt index 1ea3fe8fbb..c48694579a 100644 --- a/ext/posix/tests/posix_uname_basic.phpt +++ b/ext/posix/tests/posix_uname_basic.phpt @@ -1,17 +1,17 @@ --TEST-- -Test posix_uname() function : basic functionality +Test posix_uname() function : basic functionality --SKIPIF-- -<?php +<?php if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); ?> --FILE-- -<?php +<?php echo "Basic test of POSIX uname function\n"; - + $uname = posix_uname(); unset($uname['domainname']); print_r($uname); - + ?> ===DONE==== --EXPECTF-- diff --git a/ext/posix/tests/posix_uname_error.phpt b/ext/posix/tests/posix_uname_error.phpt index df5056b828..09c435fe69 100644 --- a/ext/posix/tests/posix_uname_error.phpt +++ b/ext/posix/tests/posix_uname_error.phpt @@ -1,5 +1,5 @@ --TEST-- -Test posix_uname() function : error conditions +Test posix_uname() function : error conditions --SKIPIF-- <?php if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; |