diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-05 12:42:00 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-02-05 12:42:18 +0100 |
commit | b5f852a8cb22656dde4aecbfbb9d509d835eb3c5 (patch) | |
tree | ad3f2391bfed569003b057f420516738854efb69 /ext/posix | |
parent | 8bc663f43bb3f556866a2f804c422646c4da56f2 (diff) | |
download | php-git-b5f852a8cb22656dde4aecbfbb9d509d835eb3c5.tar.gz |
Some more test removals
Noticed these while implementing error handler changes.
Diffstat (limited to 'ext/posix')
-rw-r--r-- | ext/posix/tests/posix_seteuid_error2.phpt | 55 | ||||
-rw-r--r-- | ext/posix/tests/posix_setgid_variation6.phpt | 58 | ||||
-rw-r--r-- | ext/posix/tests/posix_setuid_error2.phpt | 55 |
3 files changed, 0 insertions, 168 deletions
diff --git a/ext/posix/tests/posix_seteuid_error2.phpt b/ext/posix/tests/posix_seteuid_error2.phpt deleted file mode 100644 index b56046d326..0000000000 --- a/ext/posix/tests/posix_seteuid_error2.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -Test function posix_seteuid() 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 -#PHPTestFest Cesena Italia on 2009-06-20 ---FILE-- -<?php - - -echo "*** Test substituting argument 1 with object values ***\n"; - - - -function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { - if (error_reporting() != 0) { - // report non-silenced errors - echo "Error: $err_no - $err_msg, $filename($linenum)\n"; - } -} -set_error_handler('test_error_handler'); - - - -class classWithToString -{ - public function __toString() { - return "Class A object"; - } -} - -class classWithoutToString -{ -} - -$variation_array = array( - 'instance of classWithToString' => new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -foreach ( $variation_array as $var ) { - var_dump(posix_seteuid( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with object values *** -Error: 2 - posix_seteuid() expects parameter 1 to be int, object given, %s -bool(false) -Error: 2 - posix_seteuid() expects parameter 1 to be int, object given, %s -bool(false) diff --git a/ext/posix/tests/posix_setgid_variation6.phpt b/ext/posix/tests/posix_setgid_variation6.phpt deleted file mode 100644 index 6be85e7a85..0000000000 --- a/ext/posix/tests/posix_setgid_variation6.phpt +++ /dev/null @@ -1,58 +0,0 @@ ---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 -#PHPTestFest Cesena Italia on 2009-06-20 ---FILE-- -<?php - - -echo "*** Test substituting argument 1 with object values ***\n"; - - - -function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { - if (error_reporting() != 0) { - // report non-silenced errors - echo "Error: $err_no - $err_msg, $filename($linenum)\n"; - } -} -set_error_handler('test_error_handler'); - - - -class classWithToString -{ - public function __toString() { - return "Class A object"; - } -} - -class classWithoutToString -{ -} - -$variation_array = array( - 'instance of classWithToString' => new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -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 int, object given, %s -bool(false) -Error: 2 - posix_setgid() expects parameter 1 to be int, object given, %s -bool(false) -===DONE=== - diff --git a/ext/posix/tests/posix_setuid_error2.phpt b/ext/posix/tests/posix_setuid_error2.phpt deleted file mode 100644 index 7775f09b0c..0000000000 --- a/ext/posix/tests/posix_setuid_error2.phpt +++ /dev/null @@ -1,55 +0,0 @@ ---TEST-- -Test function posix_setuid() 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 -#PHPTestFest Cesena Italia on 2009-06-20 ---FILE-- -<?php - - -echo "*** Test substituting argument 1 with object values ***\n"; - - - -function test_error_handler($err_no, $err_msg, $filename, $linenum, $vars) { - if (error_reporting() != 0) { - // report non-silenced errors - echo "Error: $err_no - $err_msg, $filename($linenum)\n"; - } -} -set_error_handler('test_error_handler'); - - - -class classWithToString -{ - public function __toString() { - return "Class A object"; - } -} - -class classWithoutToString -{ -} - -$variation_array = array( - 'instance of classWithToString' => new classWithToString(), - 'instance of classWithoutToString' => new classWithoutToString(), - ); - - -foreach ( $variation_array as $var ) { - var_dump(posix_setuid( $var ) ); -} -?> ---EXPECTF-- -*** Test substituting argument 1 with object values *** -Error: 2 - posix_setuid() expects parameter 1 to be int, object given, %s -bool(false) -Error: 2 - posix_setuid() expects parameter 1 to be int, object given, %s -bool(false) |