From: Raghubansh Kumar Date: Mon, 22 Oct 2007 11:13:51 +0000 (+0000) Subject: more testcase for array_filter() function X-Git-Tag: php-5.2.5RC2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4846f7e349ca5908916fd63bab36875aed9a529c;p=php more testcase for array_filter() function --- diff --git a/ext/standard/tests/array/array_filter_object.phpt b/ext/standard/tests/array/array_filter_object.phpt new file mode 100644 index 0000000000..4d49e8530c --- /dev/null +++ b/ext/standard/tests/array/array_filter_object.phpt @@ -0,0 +1,155 @@ +--TEST-- +Test array_filter() function : object functionality +--FILE-- + +--EXPECTF-- +*** Testing array_filter() : object functionality *** +array(5) { + [0]=> + object(SimpleClass)#%d (1) { + ["var1"]=> + int(10) + } + [1]=> + object(EmptyClass)#%d (0) { + } + [2]=> + object(ChildClass)#%d (2) { + ["var3:private"]=> + NULL + ["var2:protected"]=> + int(5) + } + [3]=> + object(FinalClass)#%d (1) { + ["var4:private"]=> + NULL + } + [4]=> + object(StaticClass)#%d (0) { + } +} +array(5) { + [0]=> + object(SimpleClass)#%d (1) { + ["var1"]=> + int(10) + } + [1]=> + object(EmptyClass)#%d (0) { + } + [2]=> + object(ChildClass)#%d (2) { + ["var3:private"]=> + NULL + ["var2:protected"]=> + int(5) + } + [3]=> + object(FinalClass)#%d (1) { + ["var4:private"]=> + NULL + } + [4]=> + object(StaticClass)#%d (0) { + } +} +array(0) { +} +Done