php-src/tests/classes/arrayobject_001.phpt

15 lines
192 B
PHP

--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