summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSean Coates <sean@php.net>2008-11-10 19:01:35 +0000
committerSean Coates <sean@php.net>2008-11-10 19:01:35 +0000
commit4e3929d2785f37c40bbcaa8396a216362aeb4adf (patch)
tree511545c31331c3a10a819aae5a43701cd6627a52 /tests
parentfeeaa6568e4bb03182d3285331f54f3fba59758b (diff)
downloadphp-git-4e3929d2785f37c40bbcaa8396a216362aeb4adf.tar.gz
add test for ArrayObject acting as array (for 5.3)
Diffstat (limited to 'tests')
-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