diff options
author | Alex Dowad <alexinbeijing@gmail.com> | 2020-04-26 00:03:44 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-04-27 11:53:57 +0200 |
commit | bbb8b95dbd12aba5524547f93858331ad2d95cbf (patch) | |
tree | 829460fab147b6ccedd07b819802503c6741fec7 | |
parent | b64aee97069fc77c141c787e5408d9e12f5971b4 (diff) | |
download | php-git-bbb8b95dbd12aba5524547f93858331ad2d95cbf.tar.gz |
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.
-rw-r--r-- | ext/reflection/tests/ReflectionObject_export_basic1.phpt | 36 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionObject_export_basic2.phpt | 39 | ||||
-rw-r--r-- | ext/spl/tests/iterator_018.phpt | 48 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_2.phpt | 9 | ||||
-rw-r--r-- | tests/strings/offsets_chaining_4.phpt | 9 |
5 files changed, 0 insertions, 141 deletions
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-- -<?php - -class Foo { - public $bar = 1; -} -$f = new foo; - -echo new ReflectionObject($f); - -?> ---EXPECTF-- -Object of class [ <user> 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-- -<?php - -class Foo { - public $bar = 1; -} -$f = new foo; -$f->dynProp = 'hello'; -$f->dynProp2 = 'hello again'; -echo new ReflectionObject($f); - -?> ---EXPECTF-- -Object of class [ <user> class Foo ] { - @@ %s 3-5 - - - Constants [0] { - } - - - Static properties [0] { - } - - - Static methods [0] { - } - - - Properties [1] { - Property [ public $bar = 1 ] - } - - - Dynamic properties [2] { - Property [ <dynamic> public $dynProp ] - Property [ <dynamic> 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-- -<?php - -echo "===EmptyIterator===\n"; - -foreach(new LimitIterator(new InfiniteIterator(new EmptyIterator()), 0, 3) as $key=>$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-- -<?php -$string = "foobar"; -var_dump($string[0][0][0][0]); -?> ---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-- -<?php -$string = "foobar"; -var_dump(isset($string[0][0][0][0])); -?> ---EXPECT-- -bool(true) |