From e1cc4863d91c08328ee18b25ba8cf7d85f551e89 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Tue, 20 Feb 2018 20:08:09 -0300 Subject: [PATCH] Remove duplicated tests --- Zend/tests/bug55137.phpt | 26 ----- Zend/tests/bug72221.phpt | 11 --- Zend/tests/class_alias_015.phpt | 18 ---- Zend/tests/ns_077_6.phpt | 16 ---- ext/date/tests/gmdate_variation8.phpt | 60 ------------ ext/gd/tests/imagestringup_error5.phpt | 8 +- ext/mbstring/tests/mb_ereg4.phpt | 44 --------- .../tests/mb_eregi_invalid_arguments.phpt | 20 ---- ext/oci8/tests/default_prefetch.phpt | 53 ----------- ext/oci8/tests/fetch_all.phpt | 94 ------------------- ext/session/tests/028.phpt | 16 ---- ext/session/tests/030.phpt | 25 ----- ext/spl/tests/fixedarray_017.phpt | 17 ---- ext/spl/tests/iterator_017.phpt | 18 ---- ext/spl/tests/iterator_019.phpt | 33 ------- ext/spl/tests/iterator_020.phpt | 66 ------------- .../dir/opendir_variation6-win32-mb.phpt | 75 --------------- .../tests/file/glob_error_002-win32-mb.phpt | 27 ------ .../header_redirection_004.phpt | 11 --- ext/tidy/tests/022.phpt | 42 --------- tests/classes/private_005b.phpt | 37 -------- 21 files changed, 4 insertions(+), 713 deletions(-) delete mode 100644 Zend/tests/bug55137.phpt delete mode 100644 Zend/tests/bug72221.phpt delete mode 100644 Zend/tests/class_alias_015.phpt delete mode 100644 Zend/tests/ns_077_6.phpt delete mode 100644 ext/date/tests/gmdate_variation8.phpt delete mode 100644 ext/mbstring/tests/mb_ereg4.phpt delete mode 100644 ext/mbstring/tests/mb_eregi_invalid_arguments.phpt delete mode 100644 ext/oci8/tests/default_prefetch.phpt delete mode 100644 ext/oci8/tests/fetch_all.phpt delete mode 100644 ext/session/tests/028.phpt delete mode 100644 ext/session/tests/030.phpt delete mode 100644 ext/spl/tests/fixedarray_017.phpt delete mode 100644 ext/spl/tests/iterator_017.phpt delete mode 100644 ext/spl/tests/iterator_019.phpt delete mode 100644 ext/spl/tests/iterator_020.phpt delete mode 100644 ext/standard/tests/dir/opendir_variation6-win32-mb.phpt delete mode 100644 ext/standard/tests/file/glob_error_002-win32-mb.phpt delete mode 100644 ext/standard/tests/general_functions/header_redirection_004.phpt delete mode 100644 ext/tidy/tests/022.phpt delete mode 100644 tests/classes/private_005b.phpt diff --git a/Zend/tests/bug55137.phpt b/Zend/tests/bug55137.phpt deleted file mode 100644 index 4a4e6e61a2..0000000000 --- a/Zend/tests/bug55137.phpt +++ /dev/null @@ -1,26 +0,0 @@ ---TEST-- -Bug #55137 (Changing trait static method visibility) ---FILE-- - ---EXPECT-- -abc -def diff --git a/Zend/tests/bug72221.phpt b/Zend/tests/bug72221.phpt deleted file mode 100644 index 8f30099cab..0000000000 --- a/Zend/tests/bug72221.phpt +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Bug #72221 (Segmentation fault in stream_get_line / zend_memnstr_ex) ---FILE-- - ---EXPECTF-- -object(foo\bar)#%d (0) { -} diff --git a/Zend/tests/ns_077_6.phpt b/Zend/tests/ns_077_6.phpt deleted file mode 100644 index 05235442e5..0000000000 --- a/Zend/tests/ns_077_6.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -077: Unknown compile-time constants in namespace ---FILE-- - \unknown)) -{ -} - -foo(); ---EXPECTF-- -Fatal error: Uncaught Error: Undefined constant 'unknown' in %sns_077_%d.php:%d -Stack trace: -#0 %s(%d): foo() -#1 {main} - thrown in %sns_077_%d.php on line %d diff --git a/ext/date/tests/gmdate_variation8.phpt b/ext/date/tests/gmdate_variation8.phpt deleted file mode 100644 index 8d9c1b0b97..0000000000 --- a/ext/date/tests/gmdate_variation8.phpt +++ /dev/null @@ -1,60 +0,0 @@ ---TEST-- -Test gmdate() function : usage variation - Passing Year format options to format argument. ---FILE-- - -===DONE=== ---EXPECTF-- -*** Testing gmdate() : usage variation *** - --- Testing gmdate() function with checking non leap year using Leap Year format -- -string(1) "0" - --- Testing gmdate() function with checking leap year using Leap Year format -- -string(1) "%d" -string(1) "1" - --- Testing gmdate() function with ISO-8601 year number format -- -string(4) "%d" -string(4) "2008" - --- Testing gmdate() function with full numeric representation of year format -- -string(4) "%d" -string(4) "2008" - --- Testing gmdate() function with 2 digit representation year format -- -string(2) "%d" -string(2) "08" -===DONE=== diff --git a/ext/gd/tests/imagestringup_error5.phpt b/ext/gd/tests/imagestringup_error5.phpt index 05d674e6aa..6b276ca92a 100644 --- a/ext/gd/tests/imagestringup_error5.phpt +++ b/ext/gd/tests/imagestringup_error5.phpt @@ -1,17 +1,17 @@ --TEST-- -Testing error on non-long parameter 4 of imagestring() of GD library +Testing error on non-long parameter 4 of imagestringup() of GD library --CREDITS-- Rafael Dohms #testfest PHPSP on 2009-06-20 --SKIPIF-- - --FILE-- --EXPECTF-- -Warning: imagestring() expects parameter 4 to be int, %s given in %s on line %d +Warning: imagestringup() expects parameter 4 to be int, %s given in %s on line %d diff --git a/ext/mbstring/tests/mb_ereg4.phpt b/ext/mbstring/tests/mb_ereg4.phpt deleted file mode 100644 index 8dca4358fc..0000000000 --- a/ext/mbstring/tests/mb_ereg4.phpt +++ /dev/null @@ -1,44 +0,0 @@ ---TEST-- -mb_ereg() returning matches ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -int(-1) -int(-1) -array(1) { - [0]=> - string(2) "-1" -} -int(-1) -int(-1) -array(1) { - [0]=> - string(2) "-1" -} - -Warning: mbereg_search_init() expects parameter 3 to be string, array given in %s on line %d -int(-1) -int(-1) -array(1) { - [0]=> - string(2) "-1" -} -Done diff --git a/ext/mbstring/tests/mb_eregi_invalid_arguments.phpt b/ext/mbstring/tests/mb_eregi_invalid_arguments.phpt deleted file mode 100644 index ced6fadcdf..0000000000 --- a/ext/mbstring/tests/mb_eregi_invalid_arguments.phpt +++ /dev/null @@ -1,20 +0,0 @@ ---TEST-- -mb_eregi() and invalid arguments ---SKIPIF-- - ---FILE-- - ---EXPECT-- -int(1) -bool(false) -int(1) diff --git a/ext/oci8/tests/default_prefetch.phpt b/ext/oci8/tests/default_prefetch.phpt deleted file mode 100644 index cc70c6ecb3..0000000000 --- a/ext/oci8/tests/default_prefetch.phpt +++ /dev/null @@ -1,53 +0,0 @@ ---TEST-- -oci8.default_prefetch ini option ---SKIPIF-- - ---INI-- -oci8.default_prefetch=20 ---FILE-- - ---EXPECT-- -bool(true) -int(1) -Done diff --git a/ext/oci8/tests/fetch_all.phpt b/ext/oci8/tests/fetch_all.phpt deleted file mode 100644 index 00e747cc35..0000000000 --- a/ext/oci8/tests/fetch_all.phpt +++ /dev/null @@ -1,94 +0,0 @@ ---TEST-- -oci_fetch_all() ---SKIPIF-- - ---FILE-- - ---EXPECT-- -int(3) -array(2) { - ["ID"]=> - array(3) { - [0]=> - string(1) "1" - [1]=> - string(1) "1" - [2]=> - string(1) "1" - } - ["VALUE"]=> - array(3) { - [0]=> - string(1) "1" - [1]=> - string(1) "1" - [2]=> - string(1) "1" - } -} -int(3) -array(2) { - ["ID"]=> - array(3) { - [0]=> - string(1) "1" - [1]=> - string(1) "1" - [2]=> - string(1) "1" - } - ["VALUE"]=> - array(3) { - [0]=> - string(1) "1" - [1]=> - string(1) "1" - [2]=> - string(1) "1" - } -} -Done diff --git a/ext/session/tests/028.phpt b/ext/session/tests/028.phpt deleted file mode 100644 index 79638d283d..0000000000 --- a/ext/session/tests/028.phpt +++ /dev/null @@ -1,16 +0,0 @@ ---TEST-- -$session_array = explode(";", session_encode()); should not segfault ---SKIPIF-- - ---INI-- -session.use_cookies=0 -session.cache_limiter= ---FILE-- - ---EXPECT-- -I live diff --git a/ext/session/tests/030.phpt b/ext/session/tests/030.phpt deleted file mode 100644 index 32909eb58c..0000000000 --- a/ext/session/tests/030.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -redefining SID should not cause warnings ---SKIPIF-- - ---INI-- -session.use_cookies=0 -session.use_strict_mode=0 -session.cache_limiter= -session.serialize_handler=php -session.save_handler=files ---FILE-- - ---EXPECT-- -I live diff --git a/ext/spl/tests/fixedarray_017.phpt b/ext/spl/tests/fixedarray_017.phpt deleted file mode 100644 index fb61ee3647..0000000000 --- a/ext/spl/tests/fixedarray_017.phpt +++ /dev/null @@ -1,17 +0,0 @@ ---TEST-- -SPL: FixedArray: var_dump ---FILE-- - ---EXPECTF-- -bool(false) -bool(true) -object(SplFixedArray)#%d (2) { - [0]=> - string(3) "foo" - [1]=> - NULL -} diff --git a/ext/spl/tests/iterator_017.phpt b/ext/spl/tests/iterator_017.phpt deleted file mode 100644 index b8013d7311..0000000000 --- a/ext/spl/tests/iterator_017.phpt +++ /dev/null @@ -1,18 +0,0 @@ ---TEST-- -SPL: EmptyIterator ---FILE-- - $val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== - 'A', 1 => 'B', 2 => 'C'))); - -echo $it->key() . '=>' . $it->current() . "\n"; - -echo "===Next===\n"; - -$it->next(); - -echo "===Foreach===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== - ---EXPECT-- -===Current=== -0=>A -===Next=== -===Foreach=== -1=>B -2=>C -===DONE=== diff --git a/ext/spl/tests/iterator_020.phpt b/ext/spl/tests/iterator_020.phpt deleted file mode 100644 index 6da31e391d..0000000000 --- a/ext/spl/tests/iterator_020.phpt +++ /dev/null @@ -1,66 +0,0 @@ ---TEST-- -SPL: AppendIterator ---FILE-- -$val) -{ - echo "$key=>$val\n"; -} - -echo "===Append===\n"; - -$it->append(new ArrayIterator(array(0 => 'A', 1 => 'B'))); - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Rewind===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Append===\n"; - -$it->append(new ArrayIterator(array(2 => 'C', 3 => 'D'))); - -foreach(new NoRewindIterator($it) as $key=>$val) -{ - echo "$key=>$val\n"; -} - -echo "===Rewind===\n"; - -foreach($it as $key=>$val) -{ - echo "$key=>$val\n"; -} - -?> -===DONE=== - ---EXPECT-- -===Empty=== -===Append=== -0=>A -1=>B -===Rewind=== -0=>A -1=>B -===Append=== -2=>C -3=>D -===Rewind=== -0=>A -1=>B -2=>C -3=>D -===DONE=== diff --git a/ext/standard/tests/dir/opendir_variation6-win32-mb.phpt b/ext/standard/tests/dir/opendir_variation6-win32-mb.phpt deleted file mode 100644 index f54a2ad4ae..0000000000 --- a/ext/standard/tests/dir/opendir_variation6-win32-mb.phpt +++ /dev/null @@ -1,75 +0,0 @@ ---TEST-- -Test opendir() function : usage variations - Different wildcards ---SKIPIF-- - ---FILE-- - -===DONE=== ---CLEAN-- - ---EXPECTF-- -*** Testing opendir() : usage variations *** - --- Wildcard = '*' -- - -Warning: opendir(%s/opendir_var*,%s/opendir_var*): %s in %s on line %d - -Warning: opendir(%s/opendir_var*): failed to open dir: %s in %s on line %d -bool(false) - -Warning: opendir(%s/*,%s/*): %s in %s on line %d - -Warning: opendir(%s/*): failed to open dir: %s in %s on line %d -bool(false) - --- Wildcard = '?' -- - -Warning: opendir(%s/opendir_variation6/sub_dir?,%s/opendir_variation6/sub_dir?): %s in %s on line %d - -Warning: opendir(%s/opendir_variation6/sub_dir?): failed to open dir: %s in %s on line %d -bool(false) - -Warning: opendir(%s/opendir_variation6/sub?dir1,%s/opendir_variation6/sub?dir1): %s in %s on line %d - -Warning: opendir(%s/opendir_variation6/sub?dir1): failed to open dir: %s in %s on line %d -bool(false) -===DONE=== diff --git a/ext/standard/tests/file/glob_error_002-win32-mb.phpt b/ext/standard/tests/file/glob_error_002-win32-mb.phpt deleted file mode 100644 index a61efd108c..0000000000 --- a/ext/standard/tests/file/glob_error_002-win32-mb.phpt +++ /dev/null @@ -1,27 +0,0 @@ ---TEST-- -Test glob() function: error condition - pattern too long. ---CREDITS-- -Dave Kelsey ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -*** Testing glob() : error condition - pattern too long. *** - -Warning: glob(): Pattern exceeds the maximum allowed length of %d characters in %s on line %d -bool(false) -Done diff --git a/ext/standard/tests/general_functions/header_redirection_004.phpt b/ext/standard/tests/general_functions/header_redirection_004.phpt deleted file mode 100644 index 678e3143ac..0000000000 --- a/ext/standard/tests/general_functions/header_redirection_004.phpt +++ /dev/null @@ -1,11 +0,0 @@ ---TEST-- -Location: headers respect the header() response code parameter ---CGI-- ---FILE-- - ---EXPECTHEADERS-- -Status: 404 Not Found -Location: http://example.com/ ---EXPECT-- diff --git a/ext/tidy/tests/022.phpt b/ext/tidy/tests/022.phpt deleted file mode 100644 index 5e9c38d75a..0000000000 --- a/ext/tidy/tests/022.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -tidy_repair_*() and invalid parameters ---SKIPIF-- - ---FILE-- - ---EXPECTF-- -Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d - -Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d - -Warning: tidy_repair_string(): Could not load configuration file '' in %s on line %d - -Warning: tidy_repair_string(): Could not load configuration file '1' in %s on line %d - -Warning: tidy_repair_string(): Could not set encoding '1' in %s on line %d - -Warning: tidy_repair_string() expects parameter 1 to be string, array given in %s on line %d - -Warning: tidy_repair_file(): Filename cannot be empty in %s on line %d - -Warning: tidy_repair_file(): Filename cannot be empty in %s on line %d - -Warning: tidy_repair_file() expects parameter 1 to be a valid path, array given in %s on line %d -Done diff --git a/tests/classes/private_005b.phpt b/tests/classes/private_005b.phpt deleted file mode 100644 index db139f65b7..0000000000 --- a/tests/classes/private_005b.phpt +++ /dev/null @@ -1,37 +0,0 @@ ---TEST-- -ZE2 A private method cannot be called in a derived class ---FILE-- -show(); - } -} - -class fail extends pass { - function do_show() { - $this->show(); - } -} - -$t = new pass(); -$t->do_show(); - -$t2 = new fail(); -$t2->do_show(); - -echo "Done\n"; // shouldn't be displayed -?> ---EXPECTF-- -Call show() - -Fatal error: Uncaught Error: Call to private method pass::show() from context 'fail' in %s:%d -Stack trace: -#0 %s(%d): fail->do_show() -#1 {main} - thrown in %s on line %d -- 2.40.0