+++ /dev/null
---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] {
- }
-}
+++ /dev/null
---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] {
- }
-}
+++ /dev/null
---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