]> granicus.if.org Git - php/commitdiff
Fix tests. Add missing SKIPIF sections so test do not run when POSIX extension not...
authorandy wharmby <wharmby@php.net>
Thu, 27 Aug 2009 12:21:19 +0000 (12:21 +0000)
committerandy wharmby <wharmby@php.net>
Thu, 27 Aug 2009 12:21:19 +0000 (12:21 +0000)
ext/posix/tests/posix_setgid_basic.phpt
ext/posix/tests/posix_setgid_error.phpt
ext/posix/tests/posix_setgid_variation1.phpt
ext/posix/tests/posix_setgid_variation2.phpt
ext/posix/tests/posix_setgid_variation4.phpt
ext/posix/tests/posix_setgid_variation5.phpt
ext/posix/tests/posix_setgid_variation6.phpt

index 5762d2b13c67de283702d8cf96afdcc8797c4c06..da3751fea452b2e5ad3b82cd07a199780d9b0334 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test function posix_setgid() by calling it with its expected arguments
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 --CREDITS--
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
@@ -15,6 +19,9 @@ var_dump(posix_setgid( $gid ) );
 
 
 ?>
+===DONE===
 --EXPECTF--
 *** Test by calling method or function with its expected arguments ***
 bool(true)
+===DONE===
+       
\ No newline at end of file
index 121b0403c8e70bfd8c149b19d0c49c5a35e71936..247435d94895f5042a2b7d8891327142d2f24d99 100644 (file)
@@ -1,6 +1,10 @@
 --TEST--
 Test function posix_setgid() by calling it more than or less than its expected arguments.
 --CREDITS--
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
 #PHPTestFest Cesena Italia on 2009-06-20
@@ -17,6 +21,7 @@ var_dump(posix_setgid( $gid, $extra_arg ) );
 var_dump(posix_setgid(  ) );
 
 ?>
+===DONE===
 --EXPECTF--
 *** Test by calling method or function with incorrect numbers of arguments ***
 
@@ -25,3 +30,4 @@ bool(false)
 
 Warning: posix_setgid() expects exactly 1 parameter, 0 given in %s on line %d
 bool(false)
+===DONE===
index 9125327aa999a2e58c33be00601cf05129fc729f..3690a7718cd421361028789a9e0a1a28c1d5bce5 100644 (file)
@@ -1,5 +1,9 @@
 --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
@@ -25,6 +29,7 @@ foreach ( $variation_array as $var ) {
   var_dump(posix_setgid( $var  ) );
 }
 ?>
+===DONE===
 --EXPECTF--
 *** Test substituting argument 1 with array values ***
 
@@ -39,3 +44,4 @@ bool(false)
 
 Warning: posix_setgid() expects parameter 1 to be long, array given in %s on line %d
 bool(false)
+===DONE===
index 77d614f05cc2dc2733481d01aac2c93bd6b30c9a..6d53b08377c9588ccf165227fb1557fbb595333b 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test function posix_setgid() by substituting argument 1 with boolean values.
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 --CREDITS--
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
@@ -24,9 +28,12 @@ foreach ( $variation_array as $var ) {
   var_dump(posix_setgid( $var  ) );
 }
 ?>
+===DONE===
 --EXPECTF--
 *** Test substituting argument 1 with boolean values ***
 bool(false)
 bool(false)
 bool(false)
 bool(false)
+===DONE===
+       
\ No newline at end of file
index 62acf23f39420ea88dfc3373fa3cee2eb14dd1ee..2bd209bd3dad9c5b7e19471fc3a8612c9f7f377a 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test function posix_setgid() by substituting argument 1 with float values.
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 --CREDITS--
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
@@ -25,6 +29,7 @@ foreach ( $variation_array as $var ) {
   var_dump(posix_setgid( $var  ) );
 }
 ?>
+===DONE===
 --EXPECTF--
 *** Test substituting argument 1 with float values ***
 bool(false)
@@ -32,3 +37,5 @@ bool(false)
 bool(false)
 bool(false)
 bool(false)
+===DONE===
+       
\ No newline at end of file
index f7e60a4a84b1ac7078ad6ac58f678edfc343d496..91f2bb593c1a99d4399ec675596f60592583a2b1 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test function posix_setgid() by substituting argument 1 with int values.
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 --CREDITS--
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
@@ -23,8 +27,11 @@ foreach ( $variation_array as $var ) {
   var_dump(posix_setgid( $var  ) );
 }
 ?>
+===DONE===
 --EXPECTF--
 *** Test substituting argument 1 with int values ***
 bool(false)
 bool(false)
 bool(false)
+===DONE===
+       
\ No newline at end of file
index e1bdfb131ab18044707f6fe8f9f8c71d510af90b..8557fd2e8022ebe07013393e48c8dc7af8e4007a 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 Test function posix_setgid() by substituting argument 1 with object values.
+--SKIPIF--
+<?php 
+        if(!extension_loaded("posix")) print "skip - POSIX extension not loaded"; 
+?>
 --CREDITS--
 Marco Fabbri mrfabbri@gmail.com
 Francesco Fullone ff@ideato.it
@@ -43,9 +47,12 @@ foreach ( $variation_array as $var ) {
   var_dump(posix_setgid( $var  ) );
 }
 ?>
+===DONE===
 --EXPECTF--
 *** Test substituting argument 1 with object values ***
 Error: 2 - posix_setgid() expects parameter 1 to be long, object given, %s
 bool(false)
 Error: 2 - posix_setgid() expects parameter 1 to be long, object given, %s
 bool(false)
+===DONE===
+       
\ No newline at end of file