From cd7833ec811025bc81f19db8d8949eebf6de81e0 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 26 Feb 2004 19:51:08 +0000 Subject: [PATCH] Add new test (from pierre) --- tests/lang/foreach_with_object_001.phpt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 tests/lang/foreach_with_object_001.phpt diff --git a/tests/lang/foreach_with_object_001.phpt b/tests/lang/foreach_with_object_001.phpt new file mode 100755 index 0000000000..598b844fb7 --- /dev/null +++ b/tests/lang/foreach_with_object_001.phpt @@ -0,0 +1,25 @@ +--TEST-- +foreach() with foreach($o->mthd()->arr) +--FILE-- +c()->a as $value) { + print "$value\n"; +} + +?> +===DONE=== +--EXPECT-- +1 +2 +3 +4 +5 +===DONE=== -- 2.50.1