diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/classes/arrayobject_001.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/classes/arrayobject_001.phpt b/tests/classes/arrayobject_001.phpt new file mode 100644 index 0000000000..51208f8c64 --- /dev/null +++ b/tests/classes/arrayobject_001.phpt @@ -0,0 +1,14 @@ +--TEST-- +Ensure that ArrayObject acts like an array +--SKIPIF-- +--FILE-- +<?php + +$a = new ArrayObject; +$a['foo'] = 'bar'; +echo reset($a); +echo count($a); +echo current($a); +?> +--EXPECT-- +bar1bar |