diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-10-02 01:13:30 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-10-02 01:13:30 +0300 |
commit | 02b166cde6e87691de855a31bf7e0bf1d3e8946f (patch) | |
tree | 86d600e16749320c8381a3ce7113136386743d87 /ext/imap | |
parent | fbe19323acb7b3dee24e8bce4cdbc48cbb495677 (diff) | |
download | php-git-02b166cde6e87691de855a31bf7e0bf1d3e8946f.tar.gz |
Remove irrelevant tests (they were failed because of warning to exception chenge in parameter parsing API).
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/tests/imap_close_variation3.phpt | 47 | ||||
-rw-r--r-- | ext/imap/tests/imap_fetch_overview_variation4.phpt | 46 | ||||
-rw-r--r-- | ext/imap/tests/imap_fetchbody_variation5.phpt | 46 | ||||
-rw-r--r-- | ext/imap/tests/imap_fetchheader_variation4.phpt | 45 |
4 files changed, 0 insertions, 184 deletions
diff --git a/ext/imap/tests/imap_close_variation3.phpt b/ext/imap/tests/imap_close_variation3.phpt deleted file mode 100644 index d282ba1dfd..0000000000 --- a/ext/imap/tests/imap_close_variation3.phpt +++ /dev/null @@ -1,47 +0,0 @@ ---TEST-- -Test imap_close() function : usage variations - different streams ---SKIPIF-- -<?php -extension_loaded('imap') or die('skip imap extension not available in this build'); -?> ---FILE-- -<?php -/* Prototype : bool imap_close(resource $stream_id [, int $options]) - * Description: Close an IMAP stream - * Source code: ext/imap/php_imap.c - */ - -/* - * Pass different stream types to imap_close() to test whether it can close them - */ - -echo "*** Testing imap_close() : usage variations ***\n"; - -echo "\n-- File Resource opened with fopen() --\n"; -var_dump($file_handle = fopen(__FILE__, 'r')); -var_dump(imap_close($file_handle)); -var_dump($file_handle); - -echo "\n-- Directory Resource opened with opendir() --\n"; -var_dump($dir_handle = opendir(__DIR__)); -var_dump(imap_close($dir_handle)); -var_dump($dir_handle); -?> -===DONE=== ---EXPECTF-- -*** Testing imap_close() : usage variations *** - --- File Resource opened with fopen() -- -resource(%d) of type (stream) - -Warning: imap_close(): supplied resource is not a valid imap resource in %s on line %d -bool(false) -resource(%d) of type (stream) - --- Directory Resource opened with opendir() -- -resource(%d) of type (stream) - -Warning: imap_close(): supplied resource is not a valid imap resource in %s on line %d -bool(false) -resource(%d) of type (stream) -===DONE=== diff --git a/ext/imap/tests/imap_fetch_overview_variation4.phpt b/ext/imap/tests/imap_fetch_overview_variation4.phpt deleted file mode 100644 index 2aa89b75b6..0000000000 --- a/ext/imap/tests/imap_fetch_overview_variation4.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test imap_fetch_overview() function : usage variations - different resources as $stream_id ---SKIPIF-- -<?php -extension_loaded('imap') or die('skip imap extension not available in this build'); -?> ---FILE-- -<?php -/* Prototype : array imap_fetch_overview(resource $stream_id, int $msg_no [, int $options]) - * Description: Read an overview of the information in the headers - * of the given message sequence - * Source code: ext/imap/php_imap.c - */ - -/* - * Pass different resource types to imap_fetch_overview() to test behaviour - */ - -echo "*** Testing imap_fetch_overview() : usage variations ***\n"; - -echo "\n-- File Resource opened with fopen() --\n"; -var_dump($file_pointer = fopen(__FILE__, 'r+')); -var_dump(imap_fetch_overview($file_pointer, 1)); -fclose($file_pointer); - -echo "\n-- Directory Resource opened with opendir() --\n"; -var_dump($dir_handle = opendir(__DIR__)); -var_dump(imap_fetch_overview($dir_handle, 1)); -closedir($dir_handle); -?> -===DONE=== ---EXPECTF-- -*** Testing imap_fetch_overview() : usage variations *** - --- File Resource opened with fopen() -- -resource(%d) of type (stream) - -Warning: imap_fetch_overview(): supplied resource is not a valid imap resource in %s on line %d -bool(false) - --- Directory Resource opened with opendir() -- -resource(%d) of type (stream) - -Warning: imap_fetch_overview(): supplied resource is not a valid imap resource in %s on line %d -bool(false) -===DONE=== diff --git a/ext/imap/tests/imap_fetchbody_variation5.phpt b/ext/imap/tests/imap_fetchbody_variation5.phpt deleted file mode 100644 index fa32d0e995..0000000000 --- a/ext/imap/tests/imap_fetchbody_variation5.phpt +++ /dev/null @@ -1,46 +0,0 @@ ---TEST-- -Test imap_fetchbody() function : usage variation - different resources as $stream_id arg ---SKIPIF-- -<?php -extension_loaded('imap') or die('skip imap extension not available in this build'); -?> ---FILE-- -<?php -/* Prototype : string imap_fetchbody(resource $stream_id, int $msg_no, string $section - * [, int options]) - * Description: Get a specific body section - * Source code: ext/imap/php_imap.c - */ - -/* - * Pass different resource types to imap_fetchbody() to test behaviour - */ - -echo "*** Testing imap_fetchbody() : usage variations ***\n"; - -echo "\n-- File Resource opened with fopen() --\n"; -var_dump($file_pointer = fopen(__FILE__, 'r+')); -var_dump(imap_fetchbody($file_pointer, 1)); -fclose($file_pointer); - -echo "\n-- Directory Resource opened with opendir() --\n"; -var_dump($dir_handle = opendir(__DIR__)); -var_dump(imap_fetchbody($dir_handle, 1)); -closedir($dir_handle); -?> -===DONE=== ---EXPECTF-- -*** Testing imap_fetchbody() : usage variations *** - --- File Resource opened with fopen() -- -resource(5) of type (stream) - -Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d -NULL - --- Directory Resource opened with opendir() -- -resource(6) of type (stream) - -Warning: imap_fetchbody() expects at least 3 parameters, 2 given in %s on line %d -NULL -===DONE=== diff --git a/ext/imap/tests/imap_fetchheader_variation4.phpt b/ext/imap/tests/imap_fetchheader_variation4.phpt deleted file mode 100644 index 05322f1527..0000000000 --- a/ext/imap/tests/imap_fetchheader_variation4.phpt +++ /dev/null @@ -1,45 +0,0 @@ ---TEST-- -Test imap_fetchheader() function : usage variations - diff resource types as $stream_id ---SKIPIF-- -<?php -extension_loaded('imap') or die('skip imap extension not available in this build'); -?> ---FILE-- -<?php -/* Prototype : string imap_fetchheader(resource $stream_id, int $msg_no [, int $options]) - * Description: Get the full unfiltered header for a message - * Source code: ext/imap/php_imap.c - */ - -/* - * Pass different types of resources to imap_fetchheader() to test behaviour - */ - -echo "*** Testing imap_fetchheader() : usage variations ***\n"; - -echo "\n-- File Resource opened with fopen() --\n"; -var_dump($file_pointer = fopen(__FILE__, 'r+')); -var_dump(imap_fetchheader($file_pointer, 1)); -fclose($file_pointer); - -echo "\n-- Directory Resource opened with opendir() --\n"; -var_dump($dir_handle = opendir(__DIR__)); -var_dump(imap_fetchheader($dir_handle, 1)); -closedir($dir_handle); -?> -===DONE=== ---EXPECTF-- -*** Testing imap_fetchheader() : usage variations *** - --- File Resource opened with fopen() -- -resource(%d) of type (stream) - -Warning: imap_fetchheader(): supplied resource is not a valid imap resource in %s on line %d -bool(false) - --- Directory Resource opened with opendir() -- -resource(%d) of type (stream) - -Warning: imap_fetchheader(): supplied resource is not a valid imap resource in %s on line %d -bool(false) -===DONE=== |