]> granicus.if.org Git - php/commitdiff
(MFB because I'm a bad person) test to ensure that ArrayObject can act as an array
authorSean Coates <sean@php.net>
Mon, 10 Nov 2008 19:22:11 +0000 (19:22 +0000)
committerSean Coates <sean@php.net>
Mon, 10 Nov 2008 19:22:11 +0000 (19:22 +0000)
tests/classes/arrayobject_001.phpt [new file with mode: 0644]

diff --git a/tests/classes/arrayobject_001.phpt b/tests/classes/arrayobject_001.phpt
new file mode 100644 (file)
index 0000000..51208f8
--- /dev/null
@@ -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