From: Alex Dowad Date: Sat, 25 Apr 2020 22:03:44 +0000 (+0200) Subject: Remove duplicate tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bbb8b95dbd12aba5524547f93858331ad2d95cbf;p=php Remove duplicate tests Remove duplicate test (iterator_018.phpt) This is exactly the same as iterator_011.phpt. Remove duplicate test (offsets_chaining_2.phpt) This is exactly the same as offsets_chaining_1.phpt. Remove duplicate test (offsets_chaining_4.phpt) This is exactly the same as offsets_chaining_3.phpt. Remove duplicate test (ReflectionObject_export_basic1.phpt) This is exactly the same as ReflectionObject___toString_basic1.phpt. Remove duplicate test (ReflectionObject_export_basic2.phpt) This is exactly the same as ReflectionObject___toString_basic2.phpt. Closes GH-5467. --- diff --git a/ext/reflection/tests/ReflectionObject_export_basic1.phpt b/ext/reflection/tests/ReflectionObject_export_basic1.phpt deleted file mode 100644 index 9da648f3a2..0000000000 --- a/ext/reflection/tests/ReflectionObject_export_basic1.phpt +++ /dev/null @@ -1,36 +0,0 @@ ---TEST-- -ReflectionObject::__toString() : very basic test with no dynamic properties ---FILE-- - ---EXPECTF-- -Object of class [ class Foo ] { - @@ %s 3-5 - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [1] { - Property [ public $bar = 1 ] - } - - - Dynamic properties [0] { - } - - - Methods [0] { - } -} diff --git a/ext/reflection/tests/ReflectionObject_export_basic2.phpt b/ext/reflection/tests/ReflectionObject_export_basic2.phpt deleted file mode 100644 index e93dd9b331..0000000000 --- a/ext/reflection/tests/ReflectionObject_export_basic2.phpt +++ /dev/null @@ -1,39 +0,0 @@ ---TEST-- -ReflectionObject::__toString() : very basic test with dynamic properties ---FILE-- -dynProp = 'hello'; -$f->dynProp2 = 'hello again'; -echo new ReflectionObject($f); - -?> ---EXPECTF-- -Object of class [ class Foo ] { - @@ %s 3-5 - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [1] { - Property [ public $bar = 1 ] - } - - - Dynamic properties [2] { - Property [ public $dynProp ] - Property [ public $dynProp2 ] - } - - - Methods [0] { - } -} diff --git a/ext/spl/tests/iterator_018.phpt b/ext/spl/tests/iterator_018.phpt deleted file mode 100644 index 5d814ce1f7..0000000000 --- a/ext/spl/tests/iterator_018.phpt +++ /dev/null @@ -1,48 +0,0 @@ ---TEST-- -SPL: InfiniteIterator ---FILE-- -$val) -{ - echo "$key=>$val\n"; -} - -echo "===InfiniteIterator===\n"; - -$it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); -$it = new InfiniteIterator($it); -$it = new LimitIterator($it, 2, 5); -foreach($it as $val=>$key) -{ - echo "$val=>$key\n"; -} - -echo "===Infinite/LimitIterator===\n"; - -$it = new ArrayIterator(array(0 => 'A', 1 => 'B', 2 => 'C', 3 => 'D')); -$it = new LimitIterator($it, 1, 2); -$it = new InfiniteIterator($it); -$it = new LimitIterator($it, 2, 5); -foreach($it as $val=>$key) -{ - echo "$val=>$key\n"; -} - -?> ---EXPECT-- -===EmptyIterator=== -===InfiniteIterator=== -2=>C -3=>D -0=>A -1=>B -2=>C -===Infinite/LimitIterator=== -1=>B -2=>C -1=>B -2=>C -1=>B diff --git a/tests/strings/offsets_chaining_2.phpt b/tests/strings/offsets_chaining_2.phpt deleted file mode 100644 index 18b6fa2f9d..0000000000 --- a/tests/strings/offsets_chaining_2.phpt +++ /dev/null @@ -1,9 +0,0 @@ ---TEST-- -testing the behavior of string offset chaining ---FILE-- - ---EXPECT-- -string(1) "f" diff --git a/tests/strings/offsets_chaining_4.phpt b/tests/strings/offsets_chaining_4.phpt deleted file mode 100644 index 12cac5917f..0000000000 --- a/tests/strings/offsets_chaining_4.phpt +++ /dev/null @@ -1,9 +0,0 @@ ---TEST-- -testing the behavior of string offset chaining ---FILE-- - ---EXPECT-- -bool(true)