--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
?>
+===DONE===
--EXPECTF--
*** Test by calling method or function with its expected arguments ***
bool(true)
+===DONE===
+
\ No newline at end of file
--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
var_dump(posix_setgid( ) );
?>
+===DONE===
--EXPECTF--
*** Test by calling method or function with incorrect numbers of arguments ***
Warning: posix_setgid() expects exactly 1 parameter, 0 given in %s on line %d
bool(false)
+===DONE===
--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
var_dump(posix_setgid( $var ) );
}
?>
+===DONE===
--EXPECTF--
*** Test substituting argument 1 with array values ***
Warning: posix_setgid() expects parameter 1 to be long, array given in %s on line %d
bool(false)
+===DONE===
--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
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
--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
var_dump(posix_setgid( $var ) );
}
?>
+===DONE===
--EXPECTF--
*** Test substituting argument 1 with float values ***
bool(false)
bool(false)
bool(false)
bool(false)
+===DONE===
+
\ No newline at end of file
--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
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
--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
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