diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-05 15:49:15 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-03-05 17:09:09 +0100 |
commit | 10b41136383c3245507ccbca51ac07384592acc6 (patch) | |
tree | 09048a1aefbb00fd4c0ff99d90e097ababcf5794 /ext/posix/tests/posix_setgid_variation1.phpt | |
parent | e907fbaf7cde03628a09f632a771dfcb16d72874 (diff) | |
download | php-git-10b41136383c3245507ccbca51ac07384592acc6.tar.gz |
Remove more zpp error tests
Diffstat (limited to 'ext/posix/tests/posix_setgid_variation1.phpt')
-rw-r--r-- | ext/posix/tests/posix_setgid_variation1.phpt | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/ext/posix/tests/posix_setgid_variation1.phpt b/ext/posix/tests/posix_setgid_variation1.phpt deleted file mode 100644 index bb4b9b3f8b..0000000000 --- a/ext/posix/tests/posix_setgid_variation1.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Test function posix_setgid() by substituting argument 1 with array values. ---SKIPIF-- -<?php - if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; -?> ---CREDITS-- -Marco Fabbri mrfabbri@gmail.com -Francesco Fullone ff@ideato.it -#PHPTestFest Cesena Italia on 2009-06-20 ---FILE-- -<?php - - -echo "*** Test substituting argument 1 with array values ***\n"; - -$index_array = array(1, 2, 3); -$assoc_array = array(1 => 'one', 2 => 'two'); - -$variation_array = array( - 'empty array' => array(), - 'int indexed array' => $index_array, - 'associative array' => $assoc_array, - 'nested arrays' => array('foo', $index_array, $assoc_array), - ); - - -foreach ( $variation_array as $var ) { - var_dump(posix_setgid( $var ) ); -} -?> -===DONE=== ---EXPECTF-- -*** Test substituting argument 1 with array values *** - -Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d -bool(false) - -Warning: posix_setgid() expects parameter 1 to be int, array given in %s on line %d -bool(false) -===DONE=== |