summaryrefslogtreecommitdiff
path: root/tests/classes/arrayobject_001.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/arrayobject_001.phpt')
-rw-r--r--tests/classes/arrayobject_001.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/classes/arrayobject_001.phpt b/tests/classes/arrayobject_001.phpt
new file mode 100644
index 0000000..b75f8c7
--- /dev/null
+++ b/tests/classes/arrayobject_001.phpt
@@ -0,0 +1,13 @@
+--TEST--
+Ensure that ArrayObject acts like an array
+--FILE--
+<?php
+
+$a = new ArrayObject;
+$a['foo'] = 'bar';
+echo reset($a);
+echo count($a);
+echo current($a);
+?>
+--EXPECT--
+bar1bar