]> granicus.if.org Git - php/commitdiff
Remove duplicate tests
authorAlex Dowad <alexinbeijing@gmail.com>
Sat, 25 Apr 2020 22:03:44 +0000 (00:03 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 27 Apr 2020 09:53:57 +0000 (11:53 +0200)
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.

ext/reflection/tests/ReflectionObject_export_basic1.phpt [deleted file]
ext/reflection/tests/ReflectionObject_export_basic2.phpt [deleted file]
ext/spl/tests/iterator_018.phpt [deleted file]
tests/strings/offsets_chaining_2.phpt [deleted file]
tests/strings/offsets_chaining_4.phpt [deleted file]

diff --git a/ext/reflection/tests/ReflectionObject_export_basic1.phpt b/ext/reflection/tests/ReflectionObject_export_basic1.phpt
deleted file mode 100644 (file)
index 9da648f..0000000
+++ /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 (file)
index e93dd9b..0000000
+++ /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 (file)
index 5d814ce..0000000
+++ /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 (file)
index 18b6fa2..0000000
+++ /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 (file)
index 12cac59..0000000
+++ /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)