mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
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.
This commit is contained in:
@@ -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] {
|
||||
}
|
||||
}
|
||||
@@ -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] {
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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)
|
||||
Reference in New Issue
Block a user