summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Coates <sean@php.net>2008-11-10 19:22:11 +0000
committerSean Coates <sean@php.net>2008-11-10 19:22:11 +0000
commitb2e1b180ebf0900d5b7d3ed96355abd8c65469ba (patch)
treee47db38e8ee77288473e7bb363a1ca42092ef66f
parente767480c8fe2652da15afcdb71d865a53449ca6c (diff)
downloadphp-git-b2e1b180ebf0900d5b7d3ed96355abd8c65469ba.tar.gz
(MFB because I'm a bad person) test to ensure that ArrayObject can act as an array
-rw-r--r--tests/classes/arrayobject_001.phpt14
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